Answers for "linux how change python version installed linux"

3

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
Posted by: Guest on August-07-2020
0

how to set default python version linux

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.<version you dont want default> 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.<version# you want default (ex:3.6)> 2

sudo update-alternatives --config python
Posted by: Guest on December-25-2021

Code answers related to "linux how change python version installed linux"

Python Answers by Framework

Browse Popular Code Answers by Language