Last active
May 22, 2019 03:00
-
-
Save kaizer1v/0975c512657c9fdd79c9b6231d4d99c3 to your computer and use it in GitHub Desktop.
Using a different version of python (linux)
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
# Check versions of python installed | |
ls /usr/bin/python* | |
# Check your current python version | |
python --version | |
# Python 2.7.8 | |
# Change alias of Python | |
alias python='/usr/bin/python3.5' | |
# or whatever version you have installed and want to switch to | |
# Re-login to your bash | |
. ~/.bashrc | |
# notice the dot(.) | |
# now again check your updated version | |
python --version | |
# That's it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment