python导入pandas时报错:ImportError: cannot import name 'add_newdocs'

昨天更新了pandas,今天在导入pandas时报错

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

你可能感兴趣的:(问题解决,python,numpy,anaconda)