Skip to content
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

Update bundled pip to 25.0 #129583

Open
fedorkobak opened this issue Feb 2, 2025 · 2 comments
Open

Update bundled pip to 25.0 #129583

fedorkobak opened this issue Feb 2, 2025 · 2 comments
Labels
stdlib Python modules in the Lib dir topic-ensurepip type-feature A feature request or enhancement

Comments

@fedorkobak
Copy link

fedorkobak commented Feb 2, 2025

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

@fedorkobak fedorkobak added the type-bug An unexpected behavior, bug, or error label Feb 2, 2025
@hugovk hugovk changed the title Ensurepip uses outdated pip version Update bundled pip to 25.0 Feb 2, 2025
@hugovk hugovk added type-feature A feature request or enhancement and removed type-bug An unexpected behavior, bug, or error labels Feb 2, 2025
@hugovk
Copy link
Member

hugovk commented Feb 2, 2025

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

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

@hugovk
Copy link
Member

hugovk commented Feb 2, 2025

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.

@picnixz picnixz added stdlib Python modules in the Lib dir topic-ensurepip labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-ensurepip type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants