Python 3.9 version has been download on your Ubuntu system.
In this tutorial, you have learned how to install python 3.9 version on Ubuntu 20.04 using terminal or command prompt. How to install python in ubuntu system using command prompt or terminal. Note that, The easiest way is to install python on Ubuntu 20.04. In this step, execute the following command on your terminal to verify python 3.9 installation on ubuntu 20.04: python3.9 -version In this step, execute the following command on your terminal to install python 3.9 on ubuntu: sudo apt install python3.9 Step 4 – Verify Python Installation In this step, execute the following command on your terminal to Add the deadsnakes PPA: sudo add-apt-repository ppa:deadsnakes/ppa Sudo apt install software-properties-common Step 3 – Add the deadsnakes PPA
In this step, visit your terminal and execute the following command to update Apt package list: sudo apt update How to Install Python 3.9 on Ubuntu 20.04įollow the following steps and install python in ubuntu 20.04 using terminal: Step 1 – Open Terminal OR Command Promptįirst of all, your terminal or command prompt by pressing Ctrl+Alt+T key: Step 2 – Update APT Package And if you want to install python 3.9 in ubuntu 18.04, So you can use the same steps given below for Ubuntu 18.04 and all Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS. This guide shows simple ways of installing python 3.9 version on ubuntu 20.04. It includes many new features such as new dict operators, new str functions, support for IANA time zone, and more . Note that, Python 3.9 is the latest major release of the Python language. In this tutorial, you will learn how to install python 3.9 version on Ubuntu 20.04 using terminal or command prompt. To install Python 3.8.3 over the top of your existing Python, enter the following: sudo make installĪllow the process to complete.How to install python in ubuntu system using command prompt or terminal. (Option) Overwrite Default Python Installation
Your Ubuntu system may have software packages dependent on Python 2.x. It is recommended that you use the altinstall method. To create a second installation of Python 3.835, in addition to your current Python installation, enter the following: sudo make altinstall Step 6: Install a Second Instance of Python (recommended) This step can take up to 30 minutes to complete.
Using the -optimization option speeds code execution by 10-20%.Įnter the following: cd python-3.8.3. configure command evaluates and prepares Python to install on your system. Next, you need to extract the tgz file you downloaded, with the command: tar -xf Python-3.8.3.tgz Step 5: Test System and Optimize Pythonīefore you install the software, make sure you test the system and optimize Python. At the time this article was written, Python 3.7.5 was the latest version available. Note: The source code is different from the software found on the main download page. Install the supporting software with the command: sudo apt install software-properties-common
The software-properties-common package gives you better control over your package manager by letting you add PPA (Personal Package Archive) repositories. Open a terminal window, and enter the following: sudo apt update Step 2: Install Supporting Software
Step 1: Update and Refresh Repository Lists If the revision level is lower than 3.7.x, or if Python is not installed, continue to the next step. Check your version of Python by entering the following: python -version Most factory versions of Ubuntu 18.04 or Ubuntu 20.04 come with Python pre-installed. You may not see new releases as quickly on a third-party repository. There are fewer steps, but it’s dependent on a third party hosting software updates.
This process uses the apt package manager to install Python. Option 1: Install Python 3 Using apt (Easier)