5 ms·
Absolutely. Brew manages pyenv, pyenv manages Python versions, venv manages Python packages / projects. Has been very reliable for the last decade or so, with m
by n8henrie 5y ago
Absolutely. Brew manages pyenv, pyenv manages Python versions, venv manages Python packages / projects. Has been very reliable for the last decade or so, with my only complaint being the need for special linker flags when installing a new Python (homebrew openssl path etc), esp if doing an `--enable-optimizations` build (which I definitely recommend in the long run).
brew install pyenv
pyenv install 3.9.7
cd ~/myproject
pyenv local 3.9.7
python3.9 -m venv --upgrade-deps .venv
source ./.venv/bin/activate
You're off to the races. (I think I got that --upgrade-deps flag right.)