Note
Go to the end to download the full example code.
Using Mamba to get PythonΒΆ
::NOTE:: If the previous python setup worked, do not do this example. ::NOTE:: This is just a backup.
Sometimes machines are locked down. In that case, use your own package manager. On these machines, we can easily use micromamba.
This is not a tutorial on micromamba, and I am going to use a fast and dirty approach to get just what we need.
mkdir -p micromamba
pushd micromamba
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
popd
micromamba/bin/micromamba install python==3.12
.local/share/mamba/bin/python -m venv ~/py312