Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197395
| From | rbowman <bowman@montana.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Pip installs to unexpected place |
| Date | 2025-04-15 01:12 +0000 |
| Message-ID | <m65q4iF7lsgU1@mid.individual.net> (permalink) |
| References | (1 earlier) <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> <87lds22xnm.fsf@nosuchdomain.example.com> |
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. The 'activate' script starts with # This file must be used with "source bin/activate" *from bash* # You cannot run it directly The csh and fish variants have similar warnings. I don't have a Windows box up at the moment but iirc activate.bat or Activate.ps1 is in the Scripts subdirectory and you do run it directly. On Linux the python in bin is usually a symlink, although you can specify it to be copied with a parameter to venv. Symlinks on Windows are problematic but the process is more or less the same.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
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