Re: Pip installs to unexpected place

2025-04-15 Thread dn via Python-list
Various responses have been provided but the OP has not yet replied on-list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always others who would like to learn from list-discussio

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 10:43, Friedrich Romstedt via Python-list 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. To be clea

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 12:43 PM, Friedrich Romstedt via Python-list wrote: Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . [...] Instead, it was installed into the site-packages directory in

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 3:41 PM, dn via Python-list wrote: Various responses have been provided but the OP has not yet replied on- list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always

Re: Pip installs to unexpected place

2025-04-15 Thread Friedrich Romstedt via Python-list
Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : > I am using *Python 3.13* in a virtual environment under *Ubuntu Linux > 24.04* > . > [...] > Instead, it was > installed into the site-packages directory in > */home/jonathan/.locals/lib/python3.13/site-packages* ev

Re: Pip installs to unexpected place

2025-04-15 Thread Keith Thompson via Python-list
rbowman writes: > On Mon, 14 Apr 2025 09:55:09 -0400, Thomas Passin wrote: >> Pip doesn't know about the environment it runs in. It seems to me that >> you didn't active the venv before you installed using pip. So nothing >> would have gotten installed into the venv. So where is the venv that you

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
On Mon, 14 Apr 2025 15:20:13 -0700, Keith Thompson wrote: > Making the active script executable introdues the risk that you'll > accidentally execute it rather than sourcing it. If you do that, it > will probably set up the environment in a new shell process which then > immediately terminates.

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
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. T

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 16:07, Grant Edwards via Python-list wrote: On 2025-04-15, Thomas Passin via Python-list 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

Re: Pip installs to unexpected place

2025-04-15 Thread Grant Edwards via Python-list
On 2025-04-15, Thomas Passin via Python-list 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 Pi