Re: Pip installs to unexpected place

Liste des GroupesRevenir à cl python 
Sujet : Re: Pip installs to unexpected place
De : friedrichromstedt (at) *nospam* gmail.com (Friedrich Romstedt)
Groupes : comp.lang.python
Date : 15. Apr 2025, 17:43:43
Autres entêtes
Message-ID : <mailman.6.1744735462.3008.python-list@python.org>
References : 1 2
Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list
<python-list@python.org>:

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* even though I did not
specify *--user* to the *pip install* command. Is this expected behavior? I
wanted Sphinx to be installed in the virtual environment so that it would
be accessible to all users of the virtual environment.


Hi Jonathan,

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.

Do you have, by any chance, one of the following pip-related configuration
files present?

   - /etc/pip.conf
   - ~/.config/pip/pip.conf
   - ~/.pip/pip.conf (lagacy)

I took this list from https://pip.pypa.io/en/stable/topics/configuration/.
*If* there is any such file present, you might look out for a line:

user = true

but I am not entirely certain about this.

Looking forward to your reply!

Best,
Friedrich

Date Sujet#  Auteur
15 Apr 25 * Re: Pip installs to unexpected place2Friedrich Romstedt
15 Apr 25 `- Re: Pip installs to unexpected place1rbowman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal