Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Last active August 5, 2023 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshpv/e557488dcab641e545056a4f0e4c2d21 to your computer and use it in GitHub Desktop.
Save rajeshpv/e557488dcab641e545056a4f0e4c2d21 to your computer and use it in GitHub Desktop.

Aug 5

python3 --version
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.11

ls -al /usr/bin/python*

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2

sudo update-alternatives --list python3

sudo update-alternatives --config python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment