'pip' is not recognized as an internal or external command
This error message typically occurs when the command prompt or terminal is not able to find the
pip executable. It may be because
pip is not installed on your system or it is not in the system's PATH.
One possible solution is to check if
pip is installed by running the following command:
If you get an error message similar to the one you mentioned, it means
pip is not installed. In that case, you can install it by running the following command:
python -m ensurepip --default-pip
Alternatively, you can try to install pip by running:
python -m pip install --upgrade pip
If you are using python3, you can try
python3 -m pip install --upgrade pip
If the problem persist please check your environment variables, specifically the PATH variable. It should contain the path to the python executable and its Scripts folder.
Also, in some cases, you may need to run the above command with administrative privileges (i.e., use
sudo on Linux or macOS, or run the command prompt or terminal as an administrator on Windows).