skip to Main Content

When I try to update pip on VS Code and also on cmd,
This appears and I have no idea why.
I have uninstalled and reinstalled pip and Python 3 times now. Help would be appreciated.

3

Answers


  1. Have you tried to run the command suggested by pip itself?
    "To update, run: python.exe -m pip install –upgrade pip"
    Just paste it into cmd.

    Login or Signup to reply.
  2. Try this:

    1. Run your Command Prompt as administrator
    2. Copy/Paste the line below in the terminal and press OK

    C:Usersyour_usernameAppDataLocalProgramsPythonPython310python.exe -m pip install –upgrade pip

    Note : Your Python installation folder may be different. Make sure to put the convenient path. You can get yours by running this code in any python interpreter :

    import sys
    
    locate_python = sys.exec_prefix
    
    print(locate_python)
    
    Login or Signup to reply.
  3. In my case I had to run

    pip config set global.user false
    

    and then do the upgrade

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search