switch python version code example
Example 1: how to change python version on linux
#Check available versions
ls /usr/bin/python*
#Change the used version 3.5 or 3.7 etc
alias python='/usr/bin/python3.x'
#do this other thing
. ~/.bashrc
#Check version
python --version
Example 2: use python as python3 zsh
# Go into your .zshrc file. Is there a line that reads:
alias python='python3'
Example 3: transition from python 2 to 3 terminal
alias python="python3"