Skip to content

pip does not automatically update to latest version in Python 3.13.2 #130720

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

Closed
DangNhutNguyen opened this issue Mar 1, 2025 · 3 comments
Closed
Labels
topic-installation type-feature A feature request or enhancement

Comments

@DangNhutNguyen
Copy link

DangNhutNguyen commented Mar 1, 2025

Crash report

What happened?

Issue Report: pip does not automatically update to latest version in Python 3.13.2

Description

When installing Python 3.13.2 from python.org and using pip to install new libraries, pip does not automatically update to the latest version (25.0.1). Instead, it notifies the user that a new version is available, but does not update itself.

Steps to Reproduce

  1. Download and install Python 3.13.2 from python.org.
  2. Open a command prompt or terminal.
  3. Run pip install <library_name> to install a new library.
  4. Observe that pip does not automatically update to the latest version.

Expected Behavior

pip should automatically update to the latest version when installing new libraries or running pip install commands.

Actual Behavior

pip notifies the user that a new version is available, but does not update itself. The user must manually update pip using:

python.exe -m pip install --upgrade pip

Environment

  • Python version: 3.13.2
  • pip version: <insert initial pip version>
  • Operating System: [insert OS name and version]

Possible Solution

Consider enabling automatic updates for pip in future versions of Python, or providing a more prominent notification to users to update pip manually.

Example Use Case

To reproduce the issue, simply install Python 3.13.2 and run:

pip install requests

pip will notify you that a new version is available, but will not update itself.

CPython versions tested on:

3.13, 3.14, 3.12

Operating systems tested on:

Windows

Output from running 'python -VV' on the command line:

No response

@DangNhutNguyen DangNhutNguyen added the type-crash A hard crash of the interpreter, possibly with a core dump label Mar 1, 2025
@picnixz picnixz added type-feature A feature request or enhancement pending The issue will be closed if no feedback is provided and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Mar 1, 2025
@picnixz
Copy link
Member

picnixz commented Mar 1, 2025

pip is externally managed so I don't think we need to update to the latest pip. We have a bundled pip for minimal usage I think, but otherwise I don't know if pip is meant to actually update itself to the latest version automatically.

Note that "pip notifies the user that a new version is available, but does not update itself" is the expected behaviour. IIRC, it also says "please update with [...]" so it lets the user decide whether it should update or not.

cc @erlend-aasland

@StanFromIreland
Copy link
Contributor

It's bundled manually and it was updated a few days ago to 25.0.1

#129583

@picnixz
Copy link
Member

picnixz commented Mar 1, 2025

I'll close this one as not planned then. We have evidence that we manually update the bundled pip.

@picnixz picnixz closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2025
@picnixz picnixz removed the pending The issue will be closed if no feedback is provided label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-installation type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants