numpy 存在舊版本

安裝numpy後,引入numpy包的時候報錯:python

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/usr/lib64/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

解決辦法python2.7

pip install numpy --ignore-installed numpy
相關文章
相關標籤/搜索