Visitar URL original
`pip install pip --upgrade` breaks pip · Issue #95244 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260830104212/https://github.com/python/cpython/issues/95244
Skip to content
/ cpython Public

pip install pip --upgrade breaks pip #95244

Description

@andry81

Bug report

  • Windows 8.1 x64
  • python-3.10.5-amd64.exe
C:\Python\x64\310\Scripts>..\python --version
Python 3.10.5

C:\Python\x64\310\Scripts>pip install pip --upgrade
Requirement already satisfied: pip in c:\python\x64\310\lib\site-packages (22.0.4)
Collecting pip
  Downloading pip-22.2-py3-none-any.whl (2.0 MB)
     ---------------------------------------- 2.0/2.0 MB 1.4 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
ERROR: Could not install packages due to an OSError: [WinError 5] Отказано в доступе: 'c:\\python\\x64\\310\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.


C:\Python\x64\310\Scripts>pip install pip --upgrade
Traceback (most recent call last):
  File "C:\Python\x64\310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python\x64\310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python\x64\310\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

The issue first issued here: NulAsh#30

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions