Skip to content

Command line for notice update not copy-pasteable for venv #13156

@roubert

Description

@roubert

Description

When using venv and pip like this:

$ python3 -m venv test
$ test/bin/pip install […]
[notice] A new release of pip is available: 24.3 -> 24.3.1
[notice] To update, run: python3 -m pip install --upgrade pip

Then that command line isn't directly copy-pasteable, as it doesn't include the required path to the venv.

Expected behavior

It'd be more helpful if the command line was directly copy-pasteable, including the venv path (when needed).

pip version

24.3.0

Python version

3.12.7

OS

Linux

How to Reproduce

$ python3 -m venv test
$ test/bin/pip --version
pip 24.3 from /tmp/test/lib/python3.12/site-packages/pip (python 3.12)
$ test/bin/pip install pip-install-test
Collecting pip-install-test
  Using cached pip_install_test-0.5-py3-none-any.whl.metadata (979 bytes)
Using cached pip_install_test-0.5-py3-none-any.whl (1.7 kB)
Installing collected packages: pip-install-test
Successfully installed pip-install-test-0.5

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

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions