Mac更新pip 使用pip install --upgrade pip 报错解决

版本过低跟新pip 使用命令pip install --upgrade pip

结果报错了,如下

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-10.0.1-py2.7.egg/EGG-INFO/PKG-INFO'
Consider using the `--user` option or check the permissions.

解决方案

sudo pip install --upgrade pip 

 

你可能感兴趣的:(mac,OS)