pip安装错误解决:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied

版权声明:本文为博主原创文章,如需转载,请注明出处: https://blog.csdn.net/MASILEJFOAISEGJIAE/article/details/89762941

Ubuntu 16.04一开始没有pip,使用以下方法安装:

wget https://bootstrap.pypa.io/get-pip.py  
python get-pip.py 

结果报错:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dis
t-packages/pip'                                                                                                          
Consider using the `--user` option or check the permissions.

解决方法:加上–user
python get-pip.py --user


参考资料:https://blog.csdn.net/Chaolei3/article/details/79253127

猜你喜欢

转载自blog.csdn.net/MASILEJFOAISEGJIAE/article/details/89762941