Answers for "ubuntu python set default version"

0

changing default python version ubuntu

sudo update-alternatives  --set python /usr/bin/python3.6
Posted by: Guest on September-09-2021
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

Set default python version linux

update-alternatives --list python
# update-alternatives: error: no alternatives for python
# means not set yet
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
# update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in auto mode
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2
# update-alternatives: using /usr/bin/python3.4 to provide /usr/bin/python (python) in auto mode
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 3
# update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in auto mode
# Higher last param will be auto selected
update-alternatives --list python
# shows all
python --version
# Python 3.9 or whichever highest
update-alternatives --config python
# This will let you change vers from a menu
Posted by: Guest on November-03-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 "ubuntu python set default version"

Python Answers by Framework

Browse Popular Code Answers by Language