Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
setuptools pkg_resources pip wheel failed with error code 1 #2883
python is already the newest version (2.7.11-1). python-dev is already the newest version (2.7.11-1). dialog is already the newest version (1.3-20160209-1). python-virtualenv is already the newest version (15.0.1+ds-3). virtualenv is already the newest version (15.0.1+ds-3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Checking for new version... Creating virtual environment... Traceback (most recent call last): File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module> main() File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main symlink=options.symlink) File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment download=download, File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/administrator/...ncrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1
OS Ubuntu 16.04 LTS
... then ...
now it works. So I assume "setuptools" in Ubuntu 16.04 LTS are just too old.
This thread was helpful, thank you! I couldn't create a Virtual Environment with virtualenv for Python because of pip/locale issues. To fix it I went through everything everyone posted on here (especially reconfiguring the locale and installing pip setuptools)
referenced this issue
May 31, 2017
I've tried the above solutions without solving the same problem.but i find some solution in "lnmp" about aliyun host problems . https://bbs.vpser.net/thread-16253-1-1.html#pid50671.
For me, It worked with this... Please read the error then follow any instructions.
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
Replace $key with the corresponding $key from your GPG error.
for SSL certificate Signing with certbot using letsencrypt
Debian 7 wheezy and starting to be fed up about this pythonesque stuff, I thought it would take 5 mn to use letsencrypt
First I got:
Which was solved using http://doc.biblissima-condorcet.fr/loris-setup-guide-ubuntu-debian 1.1
Now I have:
---> error 1
---> fatal error 2
What is this virtual env intended for? I have tried whatever is advised in this thread without success
It looks to be working now after using the instructions in last comment of https://stackoverflow.com/questions/42189878/pythonsetuptools-pkg-resources-pip-wheel-failed-with-error-code-1-error/42189903
Don't get very well why something that is supposed to ease the life of everybody is so complicate to install, would be much easier with a simple nodejs module
referenced this issue
Jul 19, 2018
added a commit
Jul 22, 2018
This error can be reproduced when index-url of pkg-resoures is set to the server without complete resources. This would happen to the user using cloud service with custom pip.conf. Update pip.conf would be a possible solution to this issue.
insert following to pip.conf
Reference (Chinese website): https://blog.csdn.net/Tsinghua2MIT/article/details/79945625