"pip" is not an internal or external command, executable program, or batch file [duplicate]

This question has already been answered here: Module installation error: pip is not an external or internal command (4 responses) Closed 3 months ago.

I tried to install discord.py .When downloading python, I checked Add to PATH, tried reinstalling pip, reinstalled python

 0
Author: insolor, 2020-07-16

2 answers

You need to check that the PATH folder paths have been added to your C:\path\to\python\Scripts (for win). This is where the executable script files are located, such as easy_install and pip.

For Windows, you can do this:

> set PATH

You will get a list of paths via ;.

You can extend the variable as follows:

> setx PATH="%PATH%;C:\path\to\python\Scripts"

For Linux, this command will look like this:

$ echo $PATH

You will get a list of paths via :.

You can extend the variable with the following obaz:

$ export PATH=$PATH:/path/to/pip
 2
Author: cauf, 2020-07-16 06:18:50

It only worked for me with the {[1] argument]}:

setx PATH "%PATH%;C:\Python\Scripts" /M
 0
Author: Valentin Rybakov, 2020-07-29 12:26:37