Benjamin-Loison / pip

The Python package installer
https://pip.pypa.io/
MIT License
0 stars 0 forks source link

New virtual environment on Debian 12 leads to not up-to-date pip and built-in packages #10

Open Benjamin-Loison opened 1 month ago

Benjamin-Loison commented 1 month ago

Description

Like setuptools. At least on Debian 12 GNOME.

Expected behavior

No response

pip version

Not read.

Python version

Not read.

OS

Not read.

How to Reproduce

Not read.

Output

No response

Code of Conduct

Benjamin-Loison commented 2 weeks ago

On Debian 12 OverClock3000 root:

python3 -m venv venv
. ~/venv/bin/activate
alias pipupdate="pip install --upgrade pip && pip --disable-pip-version-check list --outdated --format=json | python3 -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | grep -vE 'blinker' | xargs -n1 pip install -U"
pipupdate
Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (23.0.1)
Collecting pip
  Downloading pip-24.2-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 3.1 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-24.2
Requirement already satisfied: setuptools in ./venv/lib/python3.11/site-packages (66.1.1)
Collecting setuptools
  Downloading setuptools-74.0.0-py3-none-any.whl.metadata (6.7 kB)
Downloading setuptools-74.0.0-py3-none-any.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 2.3 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 66.1.1
    Uninstalling setuptools-66.1.1:
      Successfully uninstalled setuptools-66.1.1
Successfully installed setuptools-74.0.0