Skip to content

Instantly share code, notes, and snippets.

@nonohry
Created April 21, 2020 09:17
Show Gist options
  • Save nonohry/56ba1125007e8a93bcc44435276ce958 to your computer and use it in GitHub Desktop.
Save nonohry/56ba1125007e8a93bcc44435276ce958 to your computer and use it in GitHub Desktop.
Change the Python3 default version in Debian/Ubuntu

You can achieve this by applying below simple steps -

  • Check python version on terminal - python --version
  • Get root user privileges. On terminal type - sudo su
  • Write down the root user password
  • Execute this command to switch to python 3.6 -
  • update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  • Check python version - python --version
  • Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment