r/programminghelp • • Jan 08 '19

Python pip not working

I'm trying to install a module using pip but when I try to run pip commands through cmd, pip isn't recognized. I also can't use the 'python' command but can use the 'py' command which may or may or not be equivalent. I tried tweaking the PATH to make it work, but that did nothing and I don't know if I did it correctly. I am currently using Python 3.7 with no other versions installed. I am using Windows 10 64bit.

Edit: I seem to have gotten it working after fiddling with the path a bit more. I don't know why it works, but I'm not going question it further.

4 Upvotes

1 comment sorted by

1

u/serg06 Jan 11 '19

PATH is the set of directories to search for commands in. If you want to use "pip", you need to add pip.exe's directory to PATH, so that when you type "pip", cmd can search through that directory, find pip.exe, and run it.