Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux set python 3 as default

1. Check current version:
$ python --version
2. get root permissions:
$ sudo su
3. set python3 as default:
$ update-alternatives --install /usr/bin/python python /usr/bin/python3 1
4. Done. (Check by $ python --version)
Comment

make python3 as default in linux

#its work 100%
#in python 3.8 you can use your python version

sudo ln -s /usr/bin/python3.8 /usr/bin/python
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: remove app ubuntu terminal 
Shell :: delete nginx 
Shell :: linux untar 
Shell :: adb reverse tcp 8081 
Shell :: cannot find lock /var/lib/dpkg/lock-frontend 
Shell :: update vs code in ubuntu 
Shell :: nginx certbot ubuntu 
Shell :: how to delete all branches except master 
Shell :: remove git from folder 
Shell :: Could not find tools.jar debian 
Shell :: flush dns linux 
Shell :: git commit username and email 
Shell :: how to get mac cpu temp 
Shell :: how to install pip2 in kali linux 
Shell :: public class FileProvider extends android.support.v4.content.FileProvider 
Shell :: The file will have its original line endings in your working directory 
Shell :: flask login install 
Shell :: clone submodules after clone 
Shell :: python2 pip install kali 
Shell :: powershell read json file 
Shell :: how to speedtest on bash 
Shell :: uninstall node from linux debian 
Shell :: error: failed to push some refs github 
Shell :: ubuntu install codecs 
Shell :: copy my ssh key 
Shell :: updating linux 
Shell :: add kernel to jupyter 
Shell :: how to check if oh my zsh is installed 
Shell :: vue js version check 
Shell :: Unrecognized command "eject" 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =