pyenv

enable-pyenv () {
	export PYENV_ROOT="/Users/samuel/.pyenv"
	export PATH="$PYENV_ROOT/bin:$PATH"
	eval "$(pyenv init -)"
	eval "$(pyenv virtualenv-init -)"
}


alias pylist="pyenv install --list"
alias pyversions="pyenv versions"
alias pyvirtuals="pyenv virtualenvs"
alias pips="pip show"

venv is a module for multiple python runtime env, isolated python env

mkdir python3.10env
cd python3.10env
python3.10 -m venv .
ls
bin        include    lib        pyvenv.cfg
cd bin  # python,pip commands
source activate
pip3 install jinja2
ls python3.10env/lib/python3.8/site-packages
Jinja2-3.1.2.dist-info
deactivate

virtualenv is for isolated python env for each project

pip3 install virtualenv
virtualenv myenvSam -p python3.10
source myenvSam/bin/activate
python -V
pip -V
ls myenvSam/lib/python3.10/site-packages/