安装一些库的时候会报错如下:
Installing collected packages: six
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
...
参考外网大神的解释
把安装的命令改成
sudo pip install six --upgrade --ignore-installed six
即可解决(libName 库名)
Mac自己安装了python3的可以用pip3
原因是Apple预安装的这个six库出于安全原因被设置为sudo也不可以执行操作,所以需要依赖于高版本的库就需要更新six,但是没有six的权限,所以就会报错。