How To Change Python Version

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
upgrade python version
conda update python
change default python version
sudo update-alternatives --config python
how to change python version
sudo update-alternatives --config python3 #Omar
pip change python version
pip upgrade -pip

Leave a Comment