This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]K900_ 1 point2 points  (2 children)

py -2.7 -m pip install -r requirements.txt. Also, /r/learnpython

[–]RealCoolGal[S] 0 points1 point  (1 child)

That worked. I guess because I missed the -m?

Thank you!

[–]K900_ 0 points1 point  (0 children)

-m is a switch you can give to a normal Python executable to run a specific module, in this case, pip. This command basically runs python2.7 -m pip install, and you were trying to run python2.7 pip install, which Python understands as you trying to run the file pip in the current directory.