使用pip install pandas默认安装的是最新版的pandas,因为pandas版本0.24.0以后的版本不再支持python2.7,因此指定pandas0.23.0及以前的版本即可。例如:

pip install pandas==0.23.0 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

折腾一晚上,终于找到python27可用的pandas镜像源。

PS:

pip uninstall numpy 失败报错,那就在  \python\Lib\site-packages  的路径下,找到所有的numpy文件,把它直接删除,然后重复  pip uninstall numpy 即可。


————————————————

原文链接:https://blog.csdn.net/u011939633/article/details/97288644

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐