by supakeen · 1y ago · 0 comments
pyenv virtualenv python3.12 .venv
.venv/bin/python -m pip install pandas
.venv/bin/python
Not quite one command, but a bit more streamlined; I guess.E.g. if the thing you run invokes python itself, it will use the system python, not the venv one in the first case.
IME it is common to see a process tree with multiple invocations of Python in a ancestor relationship with other processes in between.