Home Ask Login Register

Developers Planet

Your answer is one click away!

user3548288 February 2016

Pip not able to find wheel

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.


Martijn Pieters February 2016

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.

Post Status

Asked in February 2016
Viewed 1,157 times
Voted 11
Answered 1 times


Leave an answer

Quote of the day: live life