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

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

你可能感兴趣的:(错误解决)