Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to set default python version linux

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.<version you dont want default> 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.<version# you want default (ex:3.6)> 2

sudo update-alternatives --config python
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #set #default #python #version #linux
ADD COMMENT
Topic
Name
1+3 =