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)

3.33
3
Gertsen 90 points

                                    update-alternatives: error: no alternatives for python3 

3.33 (3 Votes)
0
3.83
6
Null_Error 105 points

                                    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

3.83 (6 Votes)
0
3.67
6
Dynamo 105 points

                                    update-alternatives: error: no alternatives for python3 

3.67 (6 Votes)
0
3.4
5

                                    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

3.4 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
set python 3 default to 3.9.5 ubuntu how to set python3.7 is default in ubuntu how to set python is python 3 in ububtu ubuntu how to default python version 3.8 how to use python 3.7 as default in ubuntu linux make python3 default ubuntu install python 3.7 and make default make python 3.6 default ubuntu default python is 2.7 instead of 3 in linux make python 3.5 default ubuntu install python 2.7 ubunto default install python 2.7 ubunto default ubpuntu python 3 default linux make my python 3 default ubuntu default python version ubuntu make python3 9 default change default python ubuntu how to make python 3 as default in linux 7 set python 3.6 as default ubuntu set python3.9 as default ubuntu set python3.6 as default ubuntu make default python python3 on ubuntu how to make python3,6 the default ubuntu\ make python3 default python ubuntu make python 3 default in ubuntu set python 3 as default linux ubuntu default python instead of python3 default ubuntu python make python version default ubuntu linux set python3.9 as default ubuntu set python3 as default python set python3.7 as default ubuntu ubuntu set python3.8 as default set default python to python3.6 ubuntu set default python to 3.9 ubuntu how to set python 3.7 as default in ubuntu how to set default pythin in ubuntu ubuntu set default python to python3 python2 default ubuntu make python2 default ubuntu ubuntu how to make python3 as default set default version of python ubuntu how to set python3 as default version in ubuntu how to set python 2.7 as default in ubuntu how to use python 3.9 as default in ubuntu ubuntu set default python3 change default python in ubuntu setting python3 default in linux make python 3.8 default linux how to set default python3.7 in ubuntu set python as default ubuntu how to make python7 the default python on linux setting python 3 as default ubuntu in linux python2 is default how to change to python 3 make python 3 default linux change default python to 3.8 version ubuntu make python3.9 default ubuntu change default python on ubuntu make python 3.9 5 default ubuntu ubuntu python default python3 use python 3.9 as default ubuntu set python3 to default linux linux python how to set default 3.6.8 instead 2.7.5 linux python how to set default 3.6.8 set python3 as default on ubuntu python used by default ubuntu use python3 as default ubuntu use python3 as default ubunut set python3.7 default ubuntu ubuntu make python39 default ubuntu server make python 3 default linux set default python to python3 install latest version of python in ubuntu and set as default set python 3.7 as default ubuntu use python 3 as default ubuntu by default python 3.6 ubuntu by defaultpython 3.6 ubuntu make default python3 as python ubuntu make default python python3 ubuntu install python3 as default ubuntu linux set default python3.7 version how to make python 3.8 default on ubuntu make python 3.9 default ubuntu make python 3.7 default in ubuntu 14 how to get default application using python in ubuntu how to get default applications using python in ubuntu ubuntu change default to python 2 setting default python in ubuntu 18 linux set python 2.7 as default python3 default ubuntu python3 as default in ubuntu setting default python version ubuntu python 3 by default in linux python 3 default ubuntu make python 3 as default in ubuntu ubuntu change default python to python3 ubuntu set python 3.9 as default ubuntu set python 2.7 as default ubuntu use python3 as default turn python3 default ubuntu how to set default python to python3 ubuntu how to set python 2.7 as default ubuntu how to make python 3.8 my default on ubuntu ubuntu python3 as default python without terminal + how to set python 3.6 as default in ubuntu how to set python 3.6 as default in ubuntu without terminal how to set python 3.6 as default in ubuntu python 3 as default ubuntu ubuntu set python to python3 linux make python 3.9 as default set python3 as python ubuntu ubuntu set default python 3.7 make python 2.7 to default ubuntu default python ubuntu linux default python to python3 linux python3 default how to make python3 as default in linux make python3 default on linux set python3 as default linux linux set default python how to set python 3.9 as default in ubuntu configure ubuntu 18 configure default python version set python3 as default ubuntu how to set python 3 as default in ubuntu ubuntu set python 3 as default make python3 as default linux install default python ubuntu ubuntu python set default version how to make default python version in linux run python 3 by default ubuntu ubuntu set python3 8 as default ubuntu set python 3 as python make python 2.7 default ubuntu how to configure python default broser linux how to set default python version in ubuntu set default python 3 in ubuntu how to set python3 as default in ubuntu ubuntu set default python ubuntu make default python 3 ubuntu make python3 default python linux set default python version how to set default python version ubuntu make python3 default ubuntu how to set python3.9 as default ubuntu set python3 7 as default ubuntu python2 set on default python ubuntu how to set python 3.9 as default linux how to make python3.8 default on ubuntu ubuntu set default python to 2.7 set python default version ubuntu linux set python 3 as default set python 3.9 as default ubuntu set python version as default ubuntu how to use python3 as default ubuntu make python3.7 default linux python 3 default linux use python3 as default mac set python 3 as default set python default to python 3.7 linux use not default python 3 ubuntu set python2.7 as default change python2 to python3 ubuntu ubuntu python3 default change python version in ubuntu set default python to python3 ubuntu how to set python3 7 as default linux change python version change default python3 set python 3 as default ubuntu how to set python version in ubuntu set python3 to python3.8 ubuntu alias python3 to python how to set python3 as default ubuntu python default version ubuntu python3 default version link error how to change the default python version in ubuntu set default python 3 on ubuntu set default oython ubuntu how to make python 3 default on linux python3 should point to different version set python3 as default ubuntu 18.04 ubuntu change default python to environment linux choose python3 path ubuntu clean port to new python3 version ubuntu python switch version ubuntu change default python3 version doesn't change python3 --version ubuntu change default python3 version make python3 default linux alias python 3.8 linux chnage version of python ubuntu ubuntu change python version ubuntu set python3 as default how to make python3 default in linux set default python3 version switch python version ubuntu python 3.9 as default linux how to set python3.7 as default in ubuntu set python version ubuntu switch default python version ubuntu change python default version ubuntu make python3 as default in ubuntu set python 3.8 as default linux set default python ubuntu set python3 as default change /usr/bin/python to python3 ubuntu linux set python3 as default ubuntu set default python version how to make python 3 the default on ubuntu change python version ubuntu how to set python2 as default in ubuntu ubuntu make python3 default set default python version ubuntu change python to 3 ubuntu set variable to use python3.8 instead of python3 change default python version ubuntu add default python in ubuntu 16.04 ubuntu set default python to 3.9 ubuntu edit default python ubuntu change default python make python 3 default ubuntu ubuntu select python version install python 3 ubuntu and make it default bash how to point python to python3 set default python to 3 ubuntu ubuntu default python how to make python 3 default in ubuntu ubuntu set sudo python version python 3 default in ubuntu how to use python3.7 as default update python ubuntu and make primary change name python2 to python 3 ubuntu
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source