Created
March 23, 2022 17:47
-
-
Save Shengliang/63f3cd43f6372afdfc9c8057ac94d0a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install software-properties-common -y | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt install python3.10 | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 2 | |
# Now, you can easily switch to any version with the following commands. | |
sudo update-alternatives --config python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment