Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

use python3 as default ubuntu

compgen -c python
sudo su
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
Comment

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
Comment

set python3.7 as default ubuntu

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
Comment

set python 3 as default ubuntu

sudo update-alternatives --config python
Comment

Make python3 default in ubuntu

sudo apt install python-is-python3
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
sudo update-alternatives --config python
Comment

set python 3 as default ubuntu

update-alternatives: error: no alternatives for python3 
Comment

PREVIOUS NEXT
Code Example
Python :: install magic python 2 
Python :: tkinter image 
Python :: how to remove plotly toolbar 
Python :: human readable time difference python 
Python :: python clone object 
Python :: find all text in site python 
Python :: generate a list of random numbers python 
Python :: utf8 python encodage line 
Python :: flask minimal install 
Python :: installing wxpython on windows 10 
Python :: timedelta to float 
Python :: string of numbers to list of integers python 
Python :: get all the keys in a dictionary python 
Python :: python pendas shut off FutureWarning 
Python :: list of prime numbers in python 
Python :: python matplotlib plot thickness 
Python :: python sys is not defined 
Python :: kivy fixed window 
Python :: order pandas dataframe by column values 
Python :: python conda how to see channels command 
Python :: how to install nltk 
Python :: how to plot 2 decimal values in axis python 
Python :: how to get all links from a website python beautifulsoup 
Python :: python get dir 
Python :: jupyter notebook show more rows 
Python :: python code to drop columns from dataframe 
Python :: Write a Python program to append text to a file and display the text. 
Python :: python convert latitude longitude to x y 
Python :: python year month day hour minute second 
Python :: np not defined 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =