8 ms·
Pyenv[1] solves the multiple versions of python problem in my experience. You can install the version of python you want and then can set that version globally,
by whichquestion 4y ago
Pyenv[1] solves the multiple versions of python problem in my experience. You can install the version of python you want and then can set that version globally, per directory, and then use that versions pip or take it further and use a virtualenv/poetry shell.
1: https://github.com/pyenv/pyenv https://github.com/pyenv/pyenv
- sph 4y agoNot to be confused with pipenv!
- romeoblade 4y agoThis! I use a combination pyenv, direnv and poetry for my projects.
- aynawn 4y agoasdf works as a universal tool for any cli app i.e. python, terraform, ruby, golang, etc https://github.com/asdf-vm/asdf https://github.com/asdf-vm/asdf asdf plugin add python asdf install python 3.9.1 asdf global python 3.9.1 asdf local python 3.9.1