解决安装虚拟环境出现的问题(OSError: Command /home/python/.virtua...ngo3_web/bin/python3 - setuptools pkg_resources pip wheel failed with error code 2)

时间:2017-10-25 11:02:59   收藏:0   阅读:9213

python3的报错解决:

OSError: Command /home/python/.virtua...ngo3_web/bin/python3 - setuptools pkg_resources pip wheel failed with error code 2

 

出现上面的这个错误,依次输入以下两个命令

技术分享

 

 成功更新后,再次安装虚拟环境,便可以安装成功了

技术分享

 

 

 python2的报错:

OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2 #4062

 

 

python@bogon:~$ pip -V

 

pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)

 

python@bogon:~$ sudo pip install --upgrade pip

 

 

python@bogon:~$ mkvirtualenv datana

 

原文:http://www.cnblogs.com/liuyanpeng93/p/7727008.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!