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.

原因
安裝numpy時沒有先卸到舊版本,導致版本衝突

解決

#卸載numpy
pip uninstall numpy #多執行幾次,直到出現 WARNING: Skipping numpy as it is not installed.

#安裝numpy
pip install numpy==1.17.2
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章