Just sharing this, I was doing my routine this morning with a couple new VMs and was thinking how much I like building my Python environments from source.
Just wanted to share for anyone and show that it has certainly gotten easier over the years (though this year Ubuntu 26.04 did add a new step).
Sure, it is quite easy to install python from source. Usually I am doing it because I need older version for work projects. Of course, the other thing that one needs in that kind of situations is virtual environments. This makes it also quite easy to ensure that you always run the correct python. Create a venv with a specific version of python and once you are in that venv, the 'python' command will automatically run that python version. That way it is easy to use an unlimited number of python version next to each other.
To the author, if you are reading this: you also want --ensure-pip option to configure. Otherwise "pip" command in your virtual environment will point to the system "pip" (or nowhere, if you never installed it).
5 comments
[ 2.0 ms ] story [ 12.6 ms ] threadJust wanted to share for anyone and show that it has certainly gotten easier over the years (though this year Ubuntu 26.04 did add a new step).