Skip to content

Instantly share code, notes, and snippets.

@yuessir
Created June 16, 2022 05:55
Show Gist options
  • Save yuessir/e7e3d31be23694bcd04dfd44f2a7b5b6 to your computer and use it in GitHub Desktop.
Save yuessir/e7e3d31be23694bcd04dfd44f2a7b5b6 to your computer and use it in GitHub Desktop.
Change python version on per user basis Debian
Change python version on per user basis
To change a python version on per user basis you simply create an alias within user’s home directory. Open ~/.bashrc file and add new alias to change your default python executable:
alias python='/usr/bin/python3'
Once you make the above change, re-login or source your .bashrc file:
$ . ~/.bashrc
Check your default python version:
$ python --version
Python 3.9.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment