Answers for "make python3 default linux"

1

linux set python 3 as default

1. Check current version:
$ python --version
2. get root permissions:
$ sudo su
3. set python3 as default:
$ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
4. Done. (Check by $ python --version)
Posted by: Guest on February-17-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
2

set python 3 as default ubuntu

sudo update-alternatives --config python
Posted by: Guest on December-20-2020
0

make python3 as default in linux

#its work 100%
#in python 3.8 you can use your python version

sudo ln -s /usr/bin/python3.8 /usr/bin/python
Posted by: Guest on October-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language