2022-07-19
Hard-won python installationNeeded a newer Python than my package manager could provide
mkdir ~/.localpython
mkdir ~/src # and into it download the source .tgz
go there and tar -zxvf it
go inside and ./configure --enable-optimizations --prefix=$HOME/.localpython
make
make install
Then when you use venv to set up environment for something, run it with the particular python version you want to use there.
It's obnoxious that "which version of python this venv uses" cannot be handled on a par with which versions of libraries and stuff.
As an alternative to the whole above, install homebrew, which is an aftermarket package manager, then use that to get whatever python you are after, and so on.
22:10