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.youkuaiyun.com/chloezhao/article/details/53197681。
然后又:pip uninstall numpy,卸载了numpy==1.9.3。重新:pip install numpy,自动下载 1.14.5版本。
使用:import pandas 成功;import numpy 成功。

总结:初始手动下载安装Pandas,就不会这么折腾了。以后遇到问题应该多动脑筋啊!
本文记录了解决WindowXP系统下Pandas与Numpy版本不兼容的问题过程。作者经历了多次尝试,包括更新Numpy版本、手动下载Pandas安装包及调整依赖关系等步骤,最终成功解决了错误提示并实现了正常导入。
2845

被折叠的 条评论
为什么被折叠?



