Pip-tools: ImportError: No module named 'pip.req'

Created on 25 Apr 2018  路  3Comments  路  Source: jazzband/pip-tools

$ uname -a
Linux ubuntu-qwil 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ python -V
Python 3.5.4

$ pip --version
pip 10.0.1 from /home/dlweber/.virtualenvs/qwil-backend/lib/python3.5/site-packages/pip (python 3.5)

$ pip-compile --version
Traceback (most recent call last):
...
    from pip.req import InstallRequirement, parse_requirements
ImportError: No module named 'pip.req'

$ pip-sync
Traceback (most recent call last):
...
    from pip.req import InstallRequirement
ImportError: No module named 'pip.req'

Most helpful comment

I'm still having the issue with 2.0.2 on OSX.

> pip --version
pip 10.0.1 from /Library/Python/2.7/site-packages/pip (python 2.7)
> pip list | grep pip-tools
pip-tools     2.0.2

Opening piptools/utils.py shows `from pip.req import InstallRequirement' instead of the correct version that appears on GitHub.

All 3 comments

Hi @darrenleeweber,

If you do pip list, that should give you pip-tools' version. I'm ready to bet it's <2.0.0, and you just have to update to 2.0.1 for pip 10 support 馃槂 .

I'll go ahead and close the issue, comment back if upgrading to latest pip-tools (currently 2.0.2) did not solve the issue.

I'm still having the issue with 2.0.2 on OSX.

> pip --version
pip 10.0.1 from /Library/Python/2.7/site-packages/pip (python 2.7)
> pip list | grep pip-tools
pip-tools     2.0.2

Opening piptools/utils.py shows `from pip.req import InstallRequirement' instead of the correct version that appears on GitHub.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

astrojuanlu picture astrojuanlu  路  3Comments

rpkilby picture rpkilby  路  5Comments

vphilippon picture vphilippon  路  4Comments

ssbarnea picture ssbarnea  路  5Comments

atugushev picture atugushev  路  4Comments