


You can now install the latest version of Python in two ways: using Apt and using the source code. To check what version of Python 3 your machine has, open the Terminal by pressing Ctrl+Alt +T, and type in the following command: python3 –version Or alternatively: python3 -V The output should look something like this: If you see that your machine doesn’t have Python 3.9, you must run the following commands: sudo apt update sudo apt install software-properties-common These commands will install the Python packages required to install the newest Python version. If you’re having trouble installing Python on your computer, reading our Python installation guide will help.īefore you run any commands, you can save yourself a lot of effort by checking whether the Linux installation comes with the latest version of Python installed. Note: If you’ve not installed Python on your computer yet, you cannot update to a newer version. Updating Python in computers with Linux or macOS can be more complicated.

But the launcher only comes installed on the Windows version of Python 3. In other words, you won’t need to change the PATH variable every time you want to use another version of Python. You can specify which version of Python you want to use to run code with simple switches in commands (like “py -3.6”).
