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

change default ubuntu [ython 3.6.9 to python 3.7

root@irshad:/usr/bin# unlink python
root@irshad:/usr/bin# ln -s /usr/bin/python3.6 python
root@irshad:/usr/bin# python --version
Python 3.6.8
Comment

set python 3 as default ubuntu

update-alternatives: error: no alternatives for python3 
Comment

PREVIOUS NEXT
Code Example
Python :: drop a column from dataframe 
Python :: all column except pandas 
Python :: python webdriver element not interactable 
Python :: google translate with python 
Python :: take first n row of dictionary python 
Python :: python download file from web 
Python :: create a vector of zeros in r 
Python :: get index of list item in loop 
Python :: how to find columns of a dataframe 
Python :: tuple in godot 
Python :: delete space in string python 
Python :: python delete header row 
Python :: python: check type and ifno of a data frame 
Python :: discord python wait for user input 
Python :: how to install python libraries 
Python :: plotly hide trace from hover 
Python :: max of a dict 
Python :: pythom datetime now 
Python :: pandas correlation 
Python :: Finding the Variance and Standard Deviation of a list of numbers in Python 
Python :: how to iterate pandas dataframe 
Python :: creating virtual environment python 
Python :: remove duplicate rows in csv file python 
Python :: ready command discord.py 
Python :: python clock 
Python :: log of number python 
Python :: replace error with nan pandas 
Python :: python loop break on keypress 
Python :: from sklearn.externals import joblib instead use..... 
Python :: minimize window with python 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =