Re: Pip installs to unexpected place

Liste des GroupesRevenir à cl python 
Sujet : Re: Pip installs to unexpected place
De : mats (at) *nospam* wichmann.us (Mats Wichmann)
Groupes : comp.lang.python
Date : 16. Apr 2025, 02:31:07
Autres entêtes
Message-ID : <mailman.12.1744767072.3008.python-list@python.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 4/15/25 16:07, Grant Edwards via Python-list wrote:
On 2025-04-15, Thomas Passin via Python-list <python-list@python.org> wrote:
 
On Linux, at least, it's standard for pip to install into the user's
site-packages location if it's not invoked with admin privileges - even
without --user. Pip will emit a message saying so. Well, that used to be
true but nowadays Pip wants you to use the --break-system-packages flag
if you want to insist on installing into the system's Python install,
even if it's going to go into --user.
 I've always been a little baffled by that message when installing with
--user.  How can that possibly break system stuff?
Your user install dir is in your python path, so when you go to run an installed Python program which imports other packages, it might pick up the version you have in your user space rather than the system one it was tested with.  It's about a whole curated Python environment that the distro spends time validating - a different version picked up elsewhere *might* be fine. Or it might not. I think they've had enough "it's not" bug reports to have gotten quite prickly about the subject.

Date Sujet#  Auteur
16 Apr 25 o Re: Pip installs to unexpected place1Mats Wichmann

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal