Python 3.4安装pandas库时遇到的问题:no matching distribution found for numpy==1.9.3 ValueError: numpy.dtype has the wrong size, try recompiling。

Window XP 其实已经安装了numpy10.0.1,但在cmd中pip install pandas时提示:no matching distribution found for numpy==1.9.3。然后卸载了之前的numpy,又使用:pip install numpy==1.9.3,安装过程有点慢,等了好长时间,最终"sucessful"。

然后:pip install pandas,仍然提示:no matching distribution found for numpy==1.9.3。无语了

仔细思索之后,手动下载pandas.whl,地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/,选择适合的版本。安装顺利!

使用:import pandas提示:

ValueError: numpy.dtype has the wrong size, try recompiling。

查找之后,参考: https://blog.csdn.net/chloezhao/article/details/53197681。

然后又:pip uninstall numpy,卸载了numpy==1.9.3。重新:pip install numpy,自动下载 1.14.5版本。

使用:import pandas 成功;import numpy 成功。


总结:初始手动下载安装Pandas,就不会这么折腾了。以后遇到问题应该多动脑筋啊!

猜你喜欢

转载自blog.csdn.net/GGOOLE/article/details/80725793