python 安装numpy遇到没法卸载的解决办法

python 安装模块numpy遇到没法卸载的状况的解决办法

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
相关文章
相关标签/搜索