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 :: exclude index column pandas 
Python :: pygame how to draw a rectangle 
Python :: How to Create a Pandas DataFrame of Random Integers 
Python :: circumference of circle 
Python :: seaborn countplot 
Python :: how to delete a column from a dataframe in python 
Python :: python verzeichnis erstellen 
Python :: read excel into dataframe python 
Python :: curl in python 
Python :: show multiple plots python 
Python :: value count in python 
Python :: remove a column from dataframe 
Python :: python proxy scraper 
Python :: how to select a single cell in a pandas dataframe 
Python :: one-line for loop python 
Python :: python sleep 1 second 
Python :: numpy matrix power 
Python :: create column for year in dataframe python 
Python :: python list.peek 
Python :: python split string every character 
Python :: set header in dataframe 2nd line 
Python :: argparse required arguments 
Python :: python env 
Python :: convert dictionary keys/values to lowercase in python 
Python :: django create new project 
Python :: pytorch optimizer change learning rate 
Python :: csv writer python 
Python :: joining pandas dataframes 
Python :: python printing variables 
Python :: python add to file 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =