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 Newsgroups: comp.lang.python Subject: Re: Pip installs to unexpected place Date: 15 Apr 2025 21:38:29 GMT Lines: 18 Message-ID: References: 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.