Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197404

Re: Pip installs to unexpected place

From rbowman <bowman@montana.com>
Newsgroups comp.lang.python
Subject Re: Pip installs to unexpected place
Date 2025-04-15 21:38 +0000
Message-ID <m681ukFimrnU2@mid.individual.net> (permalink)
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>

Show all headers | View raw


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.


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-15 14:12 -0400
  Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-15 21:38 +0000
    Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-16 12:50 -0400

csiph-web