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
来源:oschina
链接:https://my.oschina.net/u/2464371/blog/3074110