pip command error during installation of requirements.txt

0

When I run the command py -2.7 -m pip install requirements.txt, I'm getting the error

pip requirements error screenshot

but I have already upgraded it

pip upgrade screenshot

but I'm still getting error in installing requirements.txt.

When I use the command py -2.7 -m pip install --upgrade pip. I am getting this exception

enter image description here

Rohit Potter

Posted 2018-06-28T03:52:38.933

Reputation: 43

2py -2.7 may not be the same Python as python. – Kevin – 2018-06-28T05:23:58.190

Answers

0

Use command python -m pip install -r requirements.txt

-r means to read from the file

but not able to understand why it was showing to upgrade.

Rohit Potter

Posted 2018-06-28T03:52:38.933

Reputation: 43

It showing you might wish to upgrade because your version of pip is old. pip receives upgrades like any other package. If you use multiple installations of Python (e.g. Python 2.7 and Python 3.x), each Python version has its own version of pip that may need to be upgraded. – Anaksunaman – 2018-06-28T07:46:57.457

@Anaksunaman you can see screenshot that it is already upgraded. – Rohit Potter – 2018-06-28T07:50:11.953

In your screenshots, py -2.7 -m pip shows an outdated pip and python -m pip shows it's up to date, these are two different Pythons. What does py -2.7 -m pip install --upgrade pip return? – hoefling – 2018-06-28T14:27:35.813

@hoefling I am getting some exception and this "You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command." – Rohit Potter – 2018-06-28T15:08:03.173

Copy the exception from the terminal and add it to the question. – hoefling – 2018-06-28T16:24:01.017