Build & install the python version of your choice quicky on Ubuntu 20.04:
curl -sL https://gist.githubusercontent.com/charbonnierg/fc805149c83f239f70dab055d409e868/raw/build-python.sh | sudo bash -s 3.10.13
-
Python is installed using
make altinstall
so it is not available usingpython3
but only usingpython3.X
-
Python is built with the following flags:
--enable-optimizations