1

So we currently use python 2.6 for production, and I just installed pip but couldn't get any output from cmd on windows 10. Then I tried with python -m pip ... then I got d:\Python26\python.exe: pip is a package and cannot be directly executed, it's quite annoying so how do I fix this problem?

Shane
  • 4,875
  • 12
  • 49
  • 87

1 Answers1

0

pip is a standalone executable, not package. After using get-pip.py for installing pip, you should have pip executable in d:\Python26\. Go to that folder to check if pip is there:

cd d:\Python26\
pip freeze

Then you need to add pip to your PATH: https://superuser.com/a/949573

Emin Mastizada
  • 1,375
  • 2
  • 15
  • 30
  • There's no pip executable in `d:\Python26\`, it's in `d:\Python26\Scripts`. And yes I've already added that path into my PATH – Shane Mar 10 '17 at 07:06
  • In that case you should be able to use `pip freeze` anywhere in shell. Also restart computer to update PATH (you can also find a way to do without restart, but in case with windows restarting is always better :D) – Emin Mastizada Mar 10 '17 at 07:12