mportError: Something is wrong with the numpy installation. While importing we detected an old


問題原版:

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/guowei/env/enter/envs/cbert_aug/lib/python3.6/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
 

在解決這個問題的過程中,我按照它的指示進行conda uninstall numpy ,但重裝之后,並沒有用。

我以為是conda中有三個python,(python,python3,python3.6)導致的。

但實際上不是,這三個python他們共同享有site-package中的python3.6下安裝的庫。

也就是說,並不是我指定的python的問題。

我檢查了site-package中的python3.6庫,發現里面確實有numpy.

那么問題出現在哪里呢?

出現在我安裝其他涉及到numpy的包的時候,有用到pip.

所以,用pip uninstall 之后,就發現,需要連續uninstall 兩次,才能將numpy徹底刪去。

 

綜上,conda 和 pip 是兩套機制,盡量不要去混用。

解決方案:pip uninstall numpy 兩次

然后在下載(注意是pip還是conda)

 

轉載於:https://blog.csdn.net/qq_29134801/article/details/102648699

 

 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM