Permission denied: '/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/EGG-INFO/requires.txt
来源:互联网 发布:软件著作权和发明专利 编辑:程序博客网 时间:2024/06/06 15:50
主要参考:https://stackoverflow.com/questions/21093002/error-could-not-create-usr-local-lib-python2-7-dist-packages-virtualenv-suppo
之前必须是sudo pip -V才能查看Pip的版本
You don't have permission to the Python folder.
sudo chown -R $USER /usr/local/lib/python2.7
加入这个命令之后,可以pip -V查看
通过这个命令,将Pip权限直接给到当前用户,而非root用户
阅读全文