openSUSE:Python:Externally managed
Externally Managed for Python in openSUSE
Distribution | Externally Managed |
---|---|
Tumbleweed | ON |
Leap | OFF |
The installation of python packages from pypi.org using pip is not recommended. In Tumbleweed we've enabled the externally managed setting so it's "not possible" to install using pip.
The upstream recommendation is to no install external packages on system using pip, the recommended way is always use virtualenv. But it's a common practice so a lot of users and deployments uses pip directly, in containers and also in regular distributions, so right now it's better to keep the current behavior in stable distributions until the externally-managed is widely used across all linux containers / distributions.
Having the externally-managed by default isn't a big issue technically, because anyone can bypass using the "--break-system-packages" or removing the "/usr/lib64/python3.11/EXTERNALLY-MANAGED" file manually. But I can understand people fearing to use this option because it says that you will certainly break your system and know it, the social implication of this is big enough to consider not deliver in containers until it's clear for everyone.
Links: