3 ms·
I've never encountered this requirement in many years of daily use - pip for me has always happily installed anything if it can. Now I've definitely seen custo
by 12_throw_away 2y ago
I've never encountered this requirement in many years of daily use - pip for me has always happily installed anything if it can.
Now I've definitely seen customized distributions of python from package managers that have taken steps to prevent you from using pip. IIRC, the python you get from `apt-get install python` in Debian does this? I.e., it's designed to support system utilities, not as a user's general purpose python environment, and they want `apt-get` to control this environment, not pip. So they've removed pip and ensure_pip and easy_install from your core system python environment.
TLDR: In my experience, that requirement doesn't come from pip, it's your distro taking steps to prevent https://xkcd.com/1987/ https://xkcd.com/1987/
- thayne 2y agoI'm not sure if that is upstream or an ununtu or debian patch, but that is the case on Ubuntu 24.04, at least unless you pass the --break-system-packages option.
- garblegarble 2y agoSorta, although it is a Python feature for distros to use: installations can be marked as externally managed and pip will refuse (without being forced) to make changes unless in a venv[1][2] 1: PEP 668 https://peps.python.org/pep-0668/ https://peps.python.org/pep-0668/ 2: https://packaging.python.org/en/latest/specifications/externally-managed-environments/ https://packaging.python.org/en/latest/specifications/extern...
- mort96 2y agohttps://p.mort.coffee/DEq.png https://p.mort.coffee/DEq.png This happens on Ubuntu, Debian, Fedora and macOS (Homebrew). I'm pretty sure it's just a core part of pip these days.