3 ms·
A lot of people will recommend pyenv, but I find this ends up causing obscure problems as it messes with your PYTHONPATH. I like to just install alternative ve
by imgabe 4y ago
A lot of people will recommend pyenv, but I find this ends up causing obscure problems as it messes with your PYTHONPATH.
I like to just install alternative versions from source. Download the tarball you want from python.org and run
./configure
make
make altinstall
and it will be installed separately without overwriting any other version. Then you can just create a venv to use with that version like
python3.6 -m venv py36