Module installation error: pip is not an external or internal command
Hello! I have a question that will seem very stupid to you. When I try to install the module, it returns: "pip is not an external or internal command, an executable program, or a batch file. I was making a full path. The package installer, like, doesn't need to be installed separately. Windows 7.
4 answers
You need to set the path to pip
in the environment variables, this can be done when installing python
by selecting Add Python to PATH.
If you have already installed, but forgot to select this option, you can add the path manually:
Панель управления -> Система -> Дополнительные параметры системы -> Переменные среды
You will see 2 windows, Переменные среды пользователя для <username>
and Системные переменные
, you need the first one, click on the variable Path -> Изменить
, then you will see the field Значение переменной
, put the separator ;
at the end and add the path to the directory where pip
is located (for example, C:\Python\Scripts
, the path to the Python directory can be differ).
When installing Python , you need to install pip and possibly mark Add Python to PATH.
Try it this way:
python3 -m pip -V
If it returns the version, then you can install it like this
python3 -m pip install pip
I recommend using it in conjunction with Virtual Environment
Find the installer, click delete or something like that, then run the installer again and select Add Python to PATH in the lower-left corner, and that's it