Skip to content

Update bundled pip to 25.0.1 #129583

Closed
Closed
@fedorkobak

Description

@fedorkobak

Feature

Description:

A new version of pip was recently released, but ensurepip still uses an older version. As a result, when creating a new virtual environment, ensurepip installs an outdated version of pip, leading to a warning whenever pip is used.

For example:

python3 -m venv venv
source venv/bin/activate
pip install python-dotenv

Produces the following output:

Collecting python-dotenv
  Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Installing collected packages: python-dotenv
Successfully installed python-dotenv-1.0.1

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: pip install --upgrade pip

This results in an unnecessary warning about an outdated pip version.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

Activity

changed the title [-]Ensurepip uses outdated pip version[/-] [+]Update bundled pip to 25.0[/+] on Feb 2, 2025
added
type-featureA feature request or enhancement
and removed
type-bugAn unexpected behavior, bug, or error
on Feb 2, 2025
hugovk

hugovk commented on Feb 2, 2025

@hugovk
Member

An update is planned, see pypa/pip#13103.

cc @sbidoul, we can use this issue number for the updates if you like.

hugovk

hugovk commented on Feb 2, 2025

@hugovk
Member

This results in an unnecessary warning about an outdated pip version.

Tip: you can run python3 -m venv --upgrade-deps to upgrade pip during venv creation, or pip install python-dotenv --disable-pip-version-check (or export PIP_DISABLE_PIP_VERSION_CHECK=1) to disable the warning.

added a commit that references this issue on Feb 10, 2025

gh-129583: update bundled pip to 25.0.1 (#129909)

b8f7bdd
added a commit that references this issue on Feb 10, 2025

pythongh-129583: update bundled pip to 25.0.1 (pythonGH-129909)

added a commit that references this issue on Feb 10, 2025

[3.12] pythongh-129583: update bundled pip to 25.0.1 (pythonGH-129909)

changed the title [-]Update bundled pip to 25.0[/-] [+]Update bundled pip to 25.0.1[/+] on Feb 10, 2025

5 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hugovk@picnixz@fedorkobak

        Issue actions

          Update bundled pip to 25.0.1 · Issue #129583 · python/cpython