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


Groups > comp.lang.python > #197399

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 18:15 +0000
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>

Show all headers | 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 | NextPrevious in thread | Find similar


Thread

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