Answers for "switch python version ubuntu"

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
3

set python 3 as default ubuntu

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.4 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
Posted by: Guest on December-20-2020
0

changing default python version ubuntu

sudo update-alternatives  --set python /usr/bin/python3.6
Posted by: Guest on September-09-2021
1

change python version ubuntu

[sudo] update-alternatives --install /usr/bin/python python /usr/bin/python3 10
Posted by: Guest on September-13-2021
0

set python 3 as default ubuntu

update-alternatives: error: no alternatives for python3
Posted by: Guest on December-20-2020

Code answers related to "switch python version ubuntu"

Python Answers by Framework

Browse Popular Code Answers by Language