Answers for "make python3 as default in 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
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

Code answers related to "make python3 as default in linux"

Python Answers by Framework

Browse Popular Code Answers by Language