2

When I tried to use the command

pip install --upgrade pip 

in a virtual environment, it showed me the following message:

Requirement already satisfied: pip in c:\windows\system32\venv\lib\site-packages (22.0.4) Collecting pip Using cached pip-22.1-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 22.0.4 Uninstalling pip-22.0.4: Successfully uninstalled pip-22.0.4 ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\Charles\\AppData\\Local\\Temp\\pip-uninstall-r4o_l0mr\\pip.exe' Check the permissions. 

I am on Windows 10, Python 3.9.13, in command prompt as administrator.

1
  • 1
    python -m pip install --upgrade pip Commented May 20, 2022 at 23:16

1 Answer 1

2

Try:

python -m pip install --upgrade pip 
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, it worked. I'm wondering why the tensorflow website didn't have the "-m" though.
@Cs_J Not sure, but im glad it worked

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.