Skip to content

Problems with pip upgrade on windows #5648

Closed
@greshilov

Description

🐞 Describe the bug

We use the following command to update pip, but looks like it doesn't work on windows machines.

pip install -U 'pip'

💡 To Reproduce

Try to run make install on windows machine with old pip.

💡 Expected behavior

📋 Logs/tracebacks

Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages (21.0.1)
Collecting pip
  Downloading pip-21.1-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.0.1
    Uninstalling pip-21.0.1:
      Successfully uninstalled pip-21.0.1
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pip-uninstall-2oiyo4b8\\pip.exe'
Consider using the `--user` option or check the permissions.

📋 Your version of the Python

$ python --version
Python 3.9.3

Possible solution
Use the command suggested in official pip docs:
https://pip.pypa.io/en/stable/installing/#upgrading-pip

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions