I tried downgrading my python in Google Colab to 3.4 to install a package which requires an older version of python. However, the following code didn't seem to work.
This code seems to work:
!sudo apt-get update -y
!sudo apt-get install python3.4
However I get a problem with these lines:
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.3 1
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 2
output
update-alternatives: error: alternative path /usr/bin/python3.3 doesn't exist
update-alternatives: error: alternative path /usr/bin/python3.4 doesn't exist
I followed this tutorial
However, this only talks about updating Python, not downgrading it. Also the other explanations didn't work for me.
My current Python version 3.10.12.