Skip to content

Instantly share code, notes, and snippets.

@kaizer1v
Last active May 22, 2019 03:00
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