

Even better, you can video stream tutorials from Cloud Raya’s Youtube channel.

Hopefully you find this tutorial article helpful for your present and up coming project.įor more articles and tutorials about technology, please visit Cloud Raya’s Knowledge Baseand Blog. To sum up the article, it is easy to install previous versions of Python on Ubuntu 22.04 Jammy LTS thanks to deadsnake team’s PPA. Either by changing python3 symlink or using update-alternatives command. Never ever change the default python version of Ubuntu as it will break many things. Then verify it using pip -version Important Thing to Note The previous python installation does not provide pip by default, so you will have to do: python3.x -m ensurepip -upgrade Note: Python2.7 (all), Python 3.6 (bionic), Python 3.8 (focal), Python 3.10 (jammy) are not provided by deadsnakes as upstream ubuntu provides those packages. The maintainer of the PPA informs that they only ship Python 3.7 as the lowest version for Jammy, so if you wish to install the more older version, you might want to install it for source. You can then install previous Python versions, for example Python 3.7: sudo apt install python3.7 Then, we will import deadsnake’s PPA: sudo add-apt-repository ppa:deadsnakes/ppa Sudo apt install python3.8 Installing Pythonįirst of all, you’ll need the following package installed so we can import any PPA (Personal Package Archive) repositories: sudo apt install software-properties-common -y Sudo add-apt-repository ppa:deadsnakes/ppa -y In this article, I will show you how to install Python 3.7 up to 3.9 TLDR sudo apt install software-properties-common -y Indeed, you can install more versions via the upstream repository but it only provides Python 2.7 and Python 3.10 modules. If you have questions, use the comment form below to reach us.Canonical recently announces the general availability of Ubuntu 22.04 Jammy Jellyfish LTS on April 21, 2022. That’s all! In this short article, we have explained how to install Python 3.11 in Ubuntu via the apt package manager. $ sudo update-alternatives -config python3 $ sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.11 2 $ sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.10 1 If you’ve installed multiple versions of Python in your Ubuntu system, and you want to set only one version as default, then you need to perform some additional steps as shown. To exit the Python interpreter, type the following command and press Enter.

Type "help", "copyright", "credits" or "license" for more information.
