FS#41267 - [python2-virtualenv] seems to fail with pip.
Attached to Project:
Arch Linux
Opened by José María (mantielero) - Saturday, 19 July 2014, 14:09 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 08 April 2017, 14:08 GMT
Opened by José María (mantielero) - Saturday, 19 July 2014, 14:09 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 08 April 2017, 14:08 GMT
|
Details
Description:
I cannot create a virtualenv for python2.7 with python2-virtualenv. (I would say that pip didn't get installed in the venv) Additional info: extra/python2-virtualenv 1.11.6-1 [installed] Virtual Python Environment builder Steps to reproduce: When I run: $ virtualenv2 venv I get: New python executable in venv/bin/python2 Also creating executable in venv/bin/python Cannot find a wheel for setuptools Cannot find a wheel for pip Installing setuptools, pip... Complete output from command /home/jose/src/closeye_api/venv/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named pip ---------------------------------------- ...Installing setuptools, pip...done. Traceback (most recent call last): File "/usr/bin/virtualenv2", line 3, in <module> virtualenv.main() File "/usr/lib/python2.7/site-packages/virtualenv.py", line 824, in main symlink=options.symlink) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 992, in create_environment install_wheel(to_install, py_executable, search_dirs) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 960, in install_wheel 'PIP_NO_INDEX': '1' File "/usr/lib/python2.7/site-packages/virtualenv.py", line 902, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/jose/src/closeye_api/venv/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1 If I run: $ ls -lR | grep pip $ (got nothing) |
This task depends upon
Closed by Jelle van der Waa (jelly)
Saturday, 08 April 2017, 14:08 GMT
Reason for closing: No response
Additional comments about closing: No response
Saturday, 08 April 2017, 14:08 GMT
Reason for closing: No response
Additional comments about closing: No response
$ virtualenv2 --extra-search-dir /usr/lib/python2.7/site-packages/virtualenv_support/ venv
So it looks like:
a) For some reason it is not finding the wheel files under that directory.
b) If I get: "Cannot find a wheel for setuptools", why does it continue with "Installing setuptools"
- virtualenv2: 12.0.7
- virtualenv: 12.0.7
Given that it seems that there isn't much people with this issue, it might be an issue with my own installation.
Kind regards,
José M.
$ virtualenv venv
Using base prefix '/usr'
New python executable in venv/bin/python3
Also creating executable in venv/bin/python
Installing setuptools, pip...done.
$ virtualenv2 venv2
New python executable in venv2/bin/python2
Also creating executable in venv2/bin/python
Installing setuptools, pip...done.