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


Groups > comp.lang.python > #197392

Re: Pip installs to unexpected place

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 14 Apr 2025 21:56:13 GMT
Lines 31
Message-ID <m65ejtF5vt5U1@mid.individual.net> (permalink)
References <CAApdmf2J69WgkR159sBSkxN0=mYoNmHZYboBmpPi+LdA-YBNpg@mail.gmail.com> <020e0ef5-3d53-4f9c-acb5-842a1a971b10@tompassin.net> <CAApdmf0+91Br19ZTa5sh0CLywWhD6wyL5Ou9118cF8D==edJBg@mail.gmail.com> <45c52b56-eb57-4d54-9f91-bee30280d16f@tompassin.net> <mailman.3.1744659206.3008.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net Xa4FMPmhLZwc2fHbIeO0YQw3crU/ZS3DFPSFQYZBFqGeMShvwC
Cancel-Lock sha1:NWS3hlE+uZ8IhaSd3P6WKUuTHkM= sha256:jBbDiaanpIwpTnZ32+GzNM/gYDgFoOVPzbwpqHiRdcE=
User-Agent Pan/0.160 (Toresk; )
Xref csiph.com comp.lang.python:197392

Show key headers only | View raw


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. 


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 09:55 -0400
  Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-14 21:56 +0000
    Re: Pip installs to unexpected place Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:31 -0700
  Re: Pip installs to unexpected place Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-14 15:20 -0700
    Re: Pip installs to unexpected place rbowman <bowman@montana.com> - 2025-04-15 01:12 +0000
    Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 23:11 -0400
    Re: Pip installs to unexpected place Thomas Passin <list1@tompassin.net> - 2025-04-14 21:51 -0400

csiph-web