I am installing tweepy, but I am running into an error about pip.req. I have pip installed, but for some reason pip.req still can't be found. I did a bunch of research online and the most I could find was some issue about incompatibilities between zapo (?) and python 2.7 causing the same error for some other user. The discussion was unclear about how to solve the problem, though. Thanks!
$ python2 setup.py install
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from pip.req import parse_requirements
ImportError: No module named pip.req
This is happening lately because of a change in pip 10.
The fix is pretty easy. You probably have something like:
Change that to something like:
That should do it.
Instead of importing the function and potentially encountering more issues replace the contents of the setup.py with the following:
Notice the session argument has been removed from the parse_requirements call.
I ran into same problem you have. To install pip you need to follow this https://pypi.python.org/pypi/setuptools once you get easy_install I installed pip first and then run the following command.
easy.
I downgraded to pip to 9.0.3 and things worked for me. Command for downgrading pip is
It looks like it would work if you had this code:
Do this:
pip/
pip/__init__.py
pip/req.py
pip/req.py
:modify the line in
setup.py
reqs = install_reqs
I had a very similar problem with Python 3.7 + pip 18.0:
The solution was to upgrade pip-tools from 1.10 to 2.0: