我试图将熊猫从19.2
升级到20.2
我做了pip -install --upgrade pandas
它成功运行。但是,现在当我尝试import pandas
时,我得到:
"Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
我卸载并重新安装带有pip uninstall numpy
和pip install numpy
的numpy。但似乎 numpy 使用的是兑现版本。不久前我确实安装了numpy MKL..:
C:WindowsSystem32>pip install numpy
Collecting numpy
Using cached numpy-1.13.0-cp36-none-win32.whl
Installing collected packages: numpy
Successfully installed numpy-1.13.0
如何安装numpy
的"普通"版本?因为我相信这个缓存版本导致了问题
转到此链接并下载相关的 numpy .whl 文件:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
然后导航到从中下载它的目录,并为该文件运行 pip install 命令。
希望这有帮助!
你用蟒蛇吗?尝试在cmd中运行此脚本:
"conda install numpy"
另一种解决方案可能是删除 python 项目创建的 .pyc 文件。Python解释器编译源代码到字节代码,存储在.pyc中,字节代码由Python虚拟机执行。