Answers for "change default python 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

changing default python version ubuntu

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

Code answers related to "change default python linux"

Python Answers by Framework

Browse Popular Code Answers by Language