I want to upgrade to python 3.10 in my google cloud shell, but I failed to do so. I found two methods online, which were unsuccessful so far.
- Using the deadsnakes repo: I tried the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
But I get an Error The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu kinetic Release' does not have a Release file.
- Install from the source: I followed the tutorial in this link.
I am able to install python 3.10. But when my Google Cloud Shell restarts, I am unable to run python3.10. It states
-bash: python3.10: command not found
.