[python]It is a distutils installed project

北城以北 提交于 2019-12-04 03:46:41
sudo pip install pandas

Installing collected packages: numpy, six, python-dateutil, pandas
  Found existing installation: numpy 1.8.0rc1
Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

sudo pip install --upgrade pip

pip list|grep numpy
numpy                                  1.8.0rc1
  • 要求1.12版本,但是1.8版本
cd /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
sudo rm -rf ./numpy/
rm: ./numpy/: Operation not permitted
# 没权限,sudo也不行
  • 强行安装解决:
sudo pip install numpy --ignore-installed numpy
Successfully installed numpy-1.16.4
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!