Answers for "ubuntu set python to python3"

4

how to install python3 in ubuntu

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8
Posted by: Guest on September-21-2020
3

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
Posted by: Guest on December-20-2020

Code answers related to "ubuntu set python to python3"

Python Answers by Framework

Browse Popular Code Answers by Language