I have a virtual environment. Since a couple of days I cannot run any pip commands and am getting the error:
File "env/bin/pip", line 7, in <module>
from pip import main
File "/env/lib/python2.7/site-packages/pip/__init__.py", line 15, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/env/lib/python2.7/site-packages/pip/vcs/subversion.py", line 9, in <module>
from pip.index import Link
File "/env/lib/python2.7/site-packages/pip/index.py", line 30, in <module>
from pip.wheel import Wheel, wheel_ext
ImportError: No module named wheel
I have wheel in the site-packages and it was installed earlier. how do I resolve this? I cannot use any pip commands.
Your pip
installation appears to be broken. It is not the wheel
project that is the problem here, it is the pip.wheel
package (part of pip
itself) that fails to import; it looks like /env/lib/python2.7/site-packages/pip/wheel.py
is either missing or has been corrupted somehow.
I'd reinstall pip
at this point.