0

I am attempting to download modules in Python through pip. No matter how many times I edit the PATH to show the pip.exe, it shows the same error: 'pip' is not recognized as an internal or external command, operable program or batch file.

I have changed the PATH many different times and ways to make pip usable, but these changes go unnoticed by the command prompt terminal.

How should I fix this?

R4444
  • 1,722
  • 1
  • 15
  • 25
  • Is your `python` executable accessible from the command line? At least for me, `pip` is under `\Scripts` – dcg Jun 14 '19 at 03:44
  • if you change your PATH you have to reopen cmd.exe e.g. https://stackoverflow.com/a/10411111/4711754 – Andrew Allen Jun 14 '19 at 04:35
  • 1
    As you are speaking of `pip.exe`, I assume that you are using Windows. On Windows the recommended way is `py -m pip install ...` – Serge Ballesta Jun 14 '19 at 04:37
  • 1
    Not enough information to answer. Show us the directory where `pip.exe` resides. Show us the original `PATH`, the way(s) you modify it and the resulting `PATH`. – phd Jun 14 '19 at 07:28
  • As @phd noted you haven't given us enough information. You didn't even state the OS you're using or python version -- information that is almost always relevant to any question of this nature. – Kurtis Rader Jun 15 '19 at 03:02
  • @KurtisRader `pip.exe` reveals the OS. :-) – phd Jun 15 '19 at 12:01
  • @phd No, it doesn't. You're assuming MS Windows is the only OS to employ the .exe convention. Such assumptions are dangerous. And even if, as is likely, the O.P. is using windows knowing which version might be relevant. For example, are they doing this in a WSL session on Windows 10? – Kurtis Rader Jun 16 '19 at 03:56
  • I am using Windows and Python 3.7. – Max Nibert Jun 17 '19 at 00:10

1 Answers1

0

Are you using PyCharm? if yes change the environment to your desired directory and desired interpreter if you do have multiple interpreter available

  • If you're not using PyCharm. Try to add this to your Path ;\Scripts. By doing this system can now locate the python.py inside the python location and the pip.py inside Scripts – Arben John Avillanosa Jun 14 '19 at 05:47