Re: Pip installs to unexpected place

Liste des GroupesRevenir à cl python 
Sujet : Re: Pip installs to unexpected place
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.lang.python
Date : 15. Apr 2025, 22:38:29
Autres entêtes
Message-ID : <m681ukFimrnU2@mid.individual.net>
References : 1 2 3 4
User-Agent : Pan/0.160 (Toresk; )
On Tue, 15 Apr 2025 14:12:19 -0400, Thomas Passin 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'm not sure if the restriction
will be in place given that the OP built his own Python version.

Is that pip or a distro's version of pip? On Fedora I get the message
about defaulting to user. On Ubuntu I get a message to use a venv or if I
really want a global install to use something like 'pip install python3-
black'. Ubuntu's is pip 24.2, Fedor's is 24.3.1 but neither of them show
'--break-system-packages' in --help.




Date Sujet#  Auteur
15 Apr 25 * Re: Pip installs to unexpected place3Thomas Passin
15 Apr 25 `* Re: Pip installs to unexpected place2rbowman
16 Apr 25  `- Re: Pip installs to unexpected place1Thomas Passin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal