Python download linux
Next, we will move to the Python source directory. wget Īfter downloading the Python version, we will extract the gzipped tarball, a compressed file containing Python 3.7.4. Then we will download our required release of the Python version from its official website using the wget command.
#PYTHON DOWNLOAD LINUX INSTALL#
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev wget libbz2-dev Then we will download the required packages by the following command. The other way to install Python is by downloading the source code from the Python official site.įirst, we will update and refresh the repositories. Use the Source Code from Python Official Site to Install Python on Linux We will get the following output if Python 3.8 is correctly installed on our system. To verify if Python 3.8 has been correctly installed on our system, we will enter the following command on the terminal. sudo apt updateĪfter installing all the required packages, we will install Python 3.8 by the following command. sudo add-apt-repository ppa:deadsnakes/ppaĪgain we will update and refresh the repositories. It also contains the most recent Python versions. It lets us install multiple Python versions on Ubuntu.
sudo apt install software-properties-commonīefore installing Python 3.8, we will install deadsnakes PPA. Then we will install the supporting software that is software-properties-common because it will let us add PPA (Personal Package Archive) repositories which we will use later. Installing Python using apt is a fast and recommended way.įirst, we will update and refresh repository lists by the following command. In this article, we are installing Python on Ubuntu 18.04. If Python is already installed, we will get its version otherwise, we must install Python. I answer your questions - Raspberry Pi FAQ python3.x -version