Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197399
| Path | csiph.com!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 18:15:22 GMT |
| Lines | 38 |
| Message-ID | <m67m1pFgkilU3@mid.individual.net> (permalink) |
| References | <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> <CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com> <mailman.6.1744735462.3008.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net zS2DSmvbFwU5XF24ZHRIwACFRXJz3rJQWQknrJPQOC6gK+OfUM |
| Cancel-Lock | sha1:REcOEV5xivbg2pkyxbuyQMmy/6Q= sha256:IReUoa0wxYRzzLXZXrpoiMeoXzX+FeAboLTTsAbQRe0= |
| User-Agent | Pan/0.160 (Toresk; ) |
| Xref | csiph.com comp.lang.python:197399 |
Show key headers only | View raw
On Tue, 15 Apr 2025 18:43:43 +0200, Friedrich Romstedt wrote:
> Many people put emphasis on that you need to *activate* a virtualenv
> before using it, but no-one so far stressed the fact that you got Sphinx
> installed to ~/jonathan/.local/lib/python3.13/site-packages *without
> using *--user.
This may depend on the OS. On Ubuntu 24.10 with python 3.12.7 I get
$ pip install black
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
I do have '/home/rbowman/.local/lib/python3.10/site-packages' left over
from earlier versions of Ubuntu.
However on Fedora 42 with 3.13.2
Defaulting to user installation because normal site-packages is not
writable.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar
Re: Pip installs to unexpected place Friedrich Romstedt <friedrichromstedt@gmail.com> - 2025-04-15 18:43 +0200 Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-15 18:15 +0000
csiph-web