当前位置:   article > 正文

ImportError: Unable to import required dependencies

importerror: unable to import required dependencies:

报错

ImportError: Unable to import required dependencies:
numpy: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['D:\\Analytical\\Python\\Anaconda\\anaconda\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
  • 1
  • 2

原因
安装numpy时没有先卸到旧版本,导致版本冲突

解决

#卸载numpy
pip uninstall numpy #多执行几次,直到出现 WARNING: Skipping numpy as it is not installed.

#安装numpy
pip install numpy==1.17.2
  • 1
  • 2
  • 3
  • 4
  • 5
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/503622
推荐阅读
相关标签
  

闽ICP备14008679号