Site icon TechGit

How to Install Python 3.9 on Ubuntu 20.10 and Ubuntu 20.04

Python 3.9.0 released. How to install Python in Linux Ubuntu via command line. Here are the terminal commands to install Python 3.9 on Ubuntu 2010 and Ubuntu 20.04

Python 3.9.0 is the stable release of Python programming language, and it contains many new features and optimizations.

Python 3.9.0 new features

Some of the new major new features and changes in Python 3.9 are:

Install Python 3.9.0 in Ubuntu

Run the following commands in terminal to install Python 3.9.0 in Ubuntu:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
python --version

Install Python 3.9.0 in Ubuntu from Source

Run the following set of command to install Python 3.9 on Ubuntu from source. Users can compile Python from the source through the apt package manager.


sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz
tar -xf Python-3.9.0.tgz
cd Python-3.9.0
./configure --enable-optimizations
make -j 12
sudo make altinstall

The next release after 3.9 will be 3.10. It will be an incremental improvement over 3.9, just as 3.9 was over 3.8, and so on.

Original Article

FacebookTwitterTumblrRedditLinkedInHacker NewsDiggBufferGoogle ClassroomThreadsXINGShare
Exit mobile version