'Unable to update PATH variable for pip on Windows 10

I know there are thousands of similar topics but my pip command has suddenly stopped to work and, despite all my researchs, I can't figure out why. It has been a while since I last used pip and surprisingly my computer doesn't recognize the command anymore. I reinstalled pip and the prompt tells me that the PATH variable is not correctly updated. So I update it but that doesn't solve the problem, the prompt still tells me the PATH variable is not updated. I've tried uninstalling and reinstalling python and pip and nothing works. In my environment variables, I have a user variable named PATH and a system variable named PATH, both of them have the value :
C:\Users\mertz\AppData\Local\Programs\Python\Python38\Scripts\

The user variable was already written by itself and I had to write the system variable myself.

When I'm installing pip I get this warning :

WARNING: The scripts pip.exe, pip3.6.exe and pip3.exe are installed in 'C:\Users\mertz\AppData\Local\Programs\Python\Python36-32\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

And when I type pip in the command prompt, it tells me that pip is not recognized.

What did I do wrong ?

Thanks in advance



Solution 1:[1]

I had a similar problem, at one time: I could only use administrative privileges to use python cmd or pip easy_install.

PLEASE follow these procedures:

  1. Get to your environmental variables by pressing window + r and type-in, sysdm.cpl and click ok.

  2. Copy the pip link directory to the script folder in python, but first check for pip, pip3, easy_easy, etc. If it doesn't contain pip, you have to uninstall python and delete the folder, and then reinstall python.

i.e

C:\Users\mickeymouse\AppData\Local\Programs\Python\Python38-32\Scripts.

  1. You will see user variables and system variables. (user variables are applied for only that user's account; system variable are applied to all accounts on the pc).

Create a path for both, then restart cmd.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SherylHohman