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
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