python在安裝seaborn的時候,須要更新numpy模塊,可是更新失敗,輸出下面的錯誤:html
Cannot uninstall 'numpy'. It is a distutils installed project and thus we ca
查了一下,有的網友說能夠關閉Mac的SIP,可是因爲操做系統版本較低,沒能奏效。python
最終使用的解決辦法比較簡單。操作系統
執行code
site.getsitepackages()
輸出htm
['/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/Library/Python/2.7/site-packages']
把涉及到的numpy文件夾都刪掉,再次執行ip
pip install numpy
安裝成功get
Installing collected packages: numpy Successfully installed numpy-1.15.1
原文:http://www.vmfor.com/p/101820499405.html