
This does not mean that you stop receiving updates to Python altogether. This means the version available in repositories for Ubuntu's LTS versions will not stay "latest and greatest" after a while. With the announcement of a new Annual Release Cycle for Python, a new version of Python will be released every year, as opposed to every 1.5 years. Python version in Ubuntu repositories is old? You just have to update your system to get Python upgrades (if there are any from Ubuntu). If there are security or maintenance updates, you get them with the system updates. Ubuntu takes care of the Python version it provides. This goes without saying, the dependencies will also be installed and/or upgraded as well. The second command will install whatever the latest version of Python v3 is available at the moment.Įven if you have Python installed, the 'apt' package manager will install a newer version of Python, if available. The first command will update the local package list, in case it was out of sync. Below is the command to run: sudo apt update Use the apt package manager to install Python. You can easily install it from Ubuntu's software repositories. In case you do not have Python installed, fret not. Weirdly, if Python is not found, you might get a similar error: $ python3 -version To check the version of Python that is installed, run the following command in your terminal: $ python3 -versionĪt the time of writing this article, the latest version found on is 3.10.4, which is exactly what I have installed from the first-party repository.

Sometimes, the version that is pre-installed, or the latest version that is available from Ubuntu's repositories is older than the one found on.


The thing is that in Ubuntu, the Python version 3.x is installed and its binary is named python3, not python. The problem here is that many people try to run python directly and they will be surprised when their Ubuntu system throws an error: Command 'python' not found Well yes, when you install Ubuntu, a version of Python is automatically installed as most system utilities also depend on it. Running the command will show the version of Python v3 that you have installed. You can check the version of python with the following command: python3 -version Ubuntu and almost every other Linux distribution have been shipping with some version of Python for quite a long time. The Python language has been gaining popularity for several years, both as a programming and a scripting language.
