Jun-13-2022, 10:06 PM
(Jun-13-2022, 01:18 AM)snippsat Wrote:in terms of paths being checked by an outsider program, how can it know if that directory is a python virtual environment or not. i was hoping it might be as simple as there being a file, sub directory, or symlink, of a particular name pattern in there somewhere to test existence or mode.Quote:so if you are cd'd into your venv directory, pip and python know that it is a venv directory, such as because something special is in there?No it's the activate that dos it,you see it become (req_env) then can cd to whatever directory and will always use python/pip from that environment as long is activated (req_env).
can one script be run in one terminal window in one environment and while that is still running a script be run in a different terminal window (different shell) in a different environment with both being cd'd in the same working directory (such as home directory) at the same time?
(Jun-13-2022, 01:18 AM)snippsat Wrote: Virtual environment is very common work flow in Python,so editor like eg VS Code, PyCharm pick up environment automatically or have easy way to choose it.
will my editors pick up on it? i have a big wrapper around emacs as well as several commands that carry out common changes i do at the shell command level. most, but not all, of these are in Python, one is in bash plus awk.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.