Skip to content

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

@DangNhutNguyen

Description

@DangNhutNguyen

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

Activity

added
type-crashA hard crash of the interpreter, possibly with a core dump
on Mar 1, 2025
added
type-featureA feature request or enhancement
pendingThe issue will be closed if no feedback is provided
and removed
type-crashA hard crash of the interpreter, possibly with a core dump
on Mar 1, 2025
picnixz

picnixz commented on Mar 1, 2025

@picnixz
Member

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

StanFromIreland commented on Mar 1, 2025

@StanFromIreland
Member

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

#129583

picnixz

picnixz commented on Mar 1, 2025

@picnixz
Member

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

removed
pendingThe issue will be closed if no feedback is provided
on Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @picnixz@StanFromIreland@DangNhutNguyen

        Issue actions

          pip does not automatically update to latest version in Python 3.13.2 · Issue #130720 · python/cpython