Skip to content

Instantly share code, notes, and snippets.

@kaizer1v
Last active May 22, 2019 03:00
Show Gist options
  • Save kaizer1v/0975c512657c9fdd79c9b6231d4d99c3 to your computer and use it in GitHub Desktop.
Save kaizer1v/0975c512657c9fdd79c9b6231d4d99c3 to your computer and use it in GitHub Desktop.
Using a different version of python (linux)
# 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