Pip installs to unexpected place
Keith Thompson
Keith.S.Thompson+u at gmail.com
Mon Apr 14 18:20:13 EDT 2025
Thomas Passin <list1 at tompassin.net> writes:
[...]
> To activate a venv, you have to source its activate script, which is
> in the venv. First you have to mark it as executable. Then you source
> it -
>
> source ~/venv/gf4/bin/activate
[...]
No, you don't have to (and probably shouldn't) mark the script as
executable.
Making a script executable (chmod +x) is required before *executing* it,
but when you *source* a script (using "source" or "."), your current
shell reads it and evaluates its content.
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.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u at gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
More information about the Python-list
mailing list