Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
9+4 =