Closed
Description
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
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]Ensurepip uses outdated pip version[/-][+]Update bundled pip to 25.0[/+]hugovk commentedon 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 commentedon Feb 2, 2025
Tip: you can run
python3 -m venv --upgrade-deps
to upgrade pip during venv creation, orpip install python-dotenv --disable-pip-version-check
(orexport PIP_DISABLE_PIP_VERSION_CHECK=1
) to disable the warning.gh-129583: update bundled pip to 25.0.1 (#129909)
pythongh-129583: update bundled pip to 25.0.1 (pythonGH-129909)
[3.12] pythongh-129583: update bundled pip to 25.0.1 (pythonGH-129909)
[-]Update bundled pip to 25.0[/-][+]Update bundled pip to 25.0.1[/+]5 remaining items