![]() Step 4: python3 -v You must get Python 3.8.3 How to fix the broken terminal? sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.5 1 sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.8 2 According to Ubuntu is an integer options with higher numbers have higher priority in automatic mode. On the second line use the new installed python version and set the priority to 2. On the first line use your previous version(in my case its python3.5) and set the priority number to 1. Step 1: To view the different versions on your computer: ls /usr/bin/python*ĭefault version of Python is now python3.8.3Īnother way to update Python versions on Ubuntu. Here are the steps that I took and they worked for me: This means that you must make the following changes to allow the computer to be able to use new installed python version. How to update default Python version on Ubuntu?Īfter installing new version of python 3.8, you will notice that if you type python in your terminal, it will still show you the old version of python. Your computer will display the new installed python version. Step 4: Check the version by the following command. Step 3: Once it is enabled, install Python 3.8 by typing the following command. sudo add-apt-repository ppa:deadsnakes/ppa Type the following command and hit enter. PPA is an easy way to update a program via someone, in this case I am using deadsnakes PPA. They cut down on time taken to install the software from the original source. Step 2: PPA ( Personal Package Archive) are used to add a software to your Ubuntu. sudo apt update sudo apt install software-properties-common Type these two commands in your terminal and hit enter each time. Step 1: APT automates the retrieval, configuration and installation of software packages. How to install Python 3.8 on Ubuntu 16.04? I am sharing my experience about what worked while installing, changing default versions and fixing the terminal that temporarily stopped working. It was a long-winded process for me as a newbie when I tried to install python 3.8 on my computer. Installing Python 3.8.3 on Ubuntu 16.04, change the default version of python to the new version, and why is my terminal not working.
0 Comments
|