昨天更新了pandas,今天在导入pandas时报错
- ImportError: cannot import name ‘add_newdocs’
网上查询说是很有可能是使用了anaconda作为开发环境后却自己卸载了anaconda自带的numpy,并且用pip重新安装了一个。
解决方法:通过conda install numpy
重新安装 - 可能出现问题:CondaError: Cannot link a source that does not exist.
可能的解决办法:提示让清空packages - 清空之后再运行也会出错,报错 ‘numpy’ has no attribute ‘config’
解决办法:更新numpy,pip install -U numpy
或pip install numpy –upgrade
- 运行还是报错,软件和页面全部关闭,重新开启就好了