-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to upgrade pip from python3-pip
package in Azure Linux 3
#10867
Comments
@bebound
and with
|
This might be a workaround, but the usual method to upgrade a package is to uninstall the previous version and install the new one. |
The
More info at https://peps.python.org/pep-0627/#optional-record-file Because the
|
+1, also running into this. ##[error]#6 [6/8] RUN python3 -m pip install --upgrade pip
##[error]#6 0.795 Looking in indexes: https://build:***@pkgs.dev.azure.com/*******/*******/_packaging/*******/pypi/simple
##[error]#6 0.795 Requirement already satisfied: pip in /usr/lib/python3.12/site-packages (24.2)
##[error]#6 0.994 Collecting pip
##[error]#6 1.127 Downloading https://pkgs.dev.azure.com/*******/*******/_packaging/*******/pypi/download/pip/24.3.1/pip-24.3.1-py3-none-any.whl (1.8 MB)
##[error]#6 1.190 Installing collected packages: pip
##[error]#6 1.191 Attempting uninstall: pip
##[error]#6 1.194 Found existing installation: pip 24.2
##[error]#6 1.426 error: uninstall-no-record-file
##[error]#6 1.426
##[error]#6 1.426 × Cannot uninstall pip 24.2
##[error]#6 1.426 ╰─> The package's contents are unknown: no RECORD file was found for pip.
##[error]#6 1.426
##[error]#6 1.426 hint: The package was installed by rpm. You should check if it can uninstall the package.
##[error]#6 ERROR: process "/bin/sh -c python3 -m pip install --upgrade pip" did not complete successfully: exit code: 1
##[error]------
##[error] > [6/8] RUN python3 -m pip install --upgrade pip:
##[error]#6 1.190 Installing collected packages: pip
##[error]#6 1.191 Attempting uninstall: pip
##[error]#6 1.194 Found existing installation: pip 24.2
##[error]#6 1.426 error: uninstall-no-record-file
##[error]#6 1.426
##[error]#6 1.426 × Cannot uninstall pip 24.2
##[error]#6 1.426 ╰─> The package's contents are unknown: no RECORD file was found for pip.
##[error]#6 1.426
##[error]#6 1.426 hint: The package was installed by rpm. You should check if it can uninstall the package.
##[error]------
##[error]Dockerfile:39 |
@annapankiewicz can you help me understand the need to update pip vs using what's provided? |
@jperrin As described in the issue, what's the right way to upgrade the system pip? |
Describe the bug
Not able to use
python3 -m pip install -U pip
to upgrade pip frompython3-pip
package in Azure Linux 3.I'm able to do so in Mariner2.0 and other distros.
To Reproduce
Steps to reproduce the behavior:
tdnf install python3-pip
python3 -m pip install -U pip
Expected behavior
Update pip
Screenshots
The text was updated successfully, but these errors were encountered: