![]() Start the Python 3.9 build process: make -j 12įor faster build time, modify the -j to correspond to the number of cores in your processor. The -enable-optimizations option optimizes the Python binary by running multiple tests. To the Python source directory and run the configure script, which performs a number of checks to make sure all of the dependencies on your system are present: cd Python-3.9.1. Once the download is complete, extract the gzipped archive Install the dependencies necessary to build Python: 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ĭownload the latest release’s source code from the Python download page The following steps explain how to compile Python 3.9 from the source: ![]() However, you won’t be able to maintain your Python installation through the apt package manager. Installing Python 3.9 on Ubuntu from Source #Ĭompiling Python from the source allows you to install the latest Python version and customize the build options. ![]() Python 3.9 is installed on your Ubuntu, and you can start using it. Verify that the installation was successful by typing: python3.9 -version Python 3.9.1+ Once the repository is enabled, you can install Python 3.9 by executing: sudo apt install python3.9 Update the packages list and install the prerequisites: sudo apt update sudo apt install software-properties-commonĪdd the deadsnakes PPA to your system’s sources list: sudo add-apt-repository ppa:deadsnakes/ppa Is a relatively straightforward process and takes only a few minutes to complete. Installing Python 3.9 on Ubuntu with Apt # The same steps apply for Ubuntu 18.04 and all Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS. PPA, and the second one is to build Python 3.9 from the source code. The first option is to install the package from the deadsnakes In this article, we’ll show you two ways to install Python 3.9 on Ubuntu 20.04. It includes many new features such as new dict operators, new str functions, support for IANA time zone, and more Python 3.9 is the latest major release of the Python language. How to Install Django on Ubuntu 20.04 LTS | 4 Easy Steps
0 Comments
Leave a Reply. |