Okay, I was just double checking because you hadn’t answered my earlier question about where you downloaded it from. Sometimes Python comes pre-installed with the operating system and I wanted to make sure you weren’t using that Python.
Now, it seems the likely problem is that the script to run pip is not in your PATH. When you are installing Python on Windows, I believe there is usually a checkbox during one of the steps that allows the installer to add Python to the path automatically.
If you don’t do that, you will have to add the location of Python and its scripts to your PATH yourself.
To do that, type “environment” in the Windows search bar and select “Edit the system environment variables”:
Then click on the “Environment Variables…” button at the bottom of the window:
The new window will contain sections for user variables and system variables.
In the User Variables section, scroll down until you see one called “Path”. Double-click on that.
A window called “Edit environment variable” will pop up. Click the “New” button and add the path to your Python version, then add the path to its scripts.
It should look something like this:
The top path is to the Scripts
folder that holds the pip executable, and the bottom path is to the Python{version_number}
folder that holds the Python executable.
If you don’t know where your version of Python is installed, type the command where python
into CMD. For Python 3.9 it is usually located at:
-
C:\Users\{your_user_name}\AppData\Local\Programs\Python\Python39-32
or at
C:\Python39
Once the paths to the Python folder and the Scripts folder are added, just hit Ok and you are done. You will have to restart the command prompt before it will recognize this change though.
Let me know if this helps!