Deutsch   English   Français   Italiano  
<m681ukFimrnU2@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.lang.python
Subject: Re: Pip installs to unexpected place
Date: 15 Apr 2025 21:38:29 GMT
Lines: 18
Message-ID: <m681ukFimrnU2@mid.individual.net>
References: <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com>
	<CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com>
	<bbe32f47-13d2-459c-af22-4e0e37834091@tompassin.net>
	<mailman.9.1744749213.3008.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 4niwByq2fdVrV/Dj60dZVA/et5PeLiM6qp6l+bdURynxBWthz1
Cancel-Lock: sha1:W+MBRXMLp+I1XqfYnYMlSEFWIP4= sha256:QNpGiCG8aatYamJp2COTO//IMJ3BeoC7GjQuvyIjl2Y=
User-Agent: Pan/0.160 (Toresk; )
Bytes: 1873

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.