Re: Pip installs to unexpected place

Liste des GroupesRevenir à cl python 
Sujet : Re: Pip installs to unexpected place
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.lang.python
Date : 14. Apr 2025, 22:56:13
Autres entêtes
Message-ID : <m65ejtF5vt5U1@mid.individual.net>
References : 1 2 3 4 5
User-Agent : Pan/0.160 (Toresk; )
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
set up? I usually put them into ~/venv. For example, a venv named "gf4"
is at ~/venv/gf4.

Are you sure about that? activate has


VIRTUAL_ENV="/home/rbowman/work/python/weather"
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH

$PATH is modified to point to the bin directory in the venv, and it
includes python and pip. You can use 'python3' if you really want to since
it is there also.

$ which pip
/home/rbowman/work/python/weather/bin/pip

'deactivate'  restores $PATH. 

I'll agree it sounds like the venv wasn't activated.




Date Sujet#  Auteur
14 Apr 25 * Re: Pip installs to unexpected place7Thomas Passin
14 Apr 25 +* Re: Pip installs to unexpected place2rbowman
14 Apr 25 i`- Re: Pip installs to unexpected place1Keith Thompson
14 Apr 25 `* Re: Pip installs to unexpected place4Keith Thompson
15 Apr 25  +- Re: Pip installs to unexpected place1rbowman
15 Apr 25  +- Re: Pip installs to unexpected place1Thomas Passin
15 Apr 25  `- Re: Pip installs to unexpected place1Thomas Passin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal