Created
June 16, 2022 05:55
-
-
Save yuessir/e7e3d31be23694bcd04dfd44f2a7b5b6 to your computer and use it in GitHub Desktop.
Change python version on per user basis Debian
This file contains 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
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