$ 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'
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.
Most helpful comment
I'm still having the issue with 2.0.2 on OSX.
Opening piptools/utils.py shows `from pip.req import InstallRequirement' instead of the correct version that appears on GitHub.