To check what version of Python 3 your machine has, open the Terminal by pressing Ctrl+Alt +T, and type in the following command: 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. In other words, you won’t need to change the PATH variable every time you want to use another version of Python.īut the launcher only comes installed on the Windows version of Python 3. You can specify which version of Python you want to use to run code with simple switches in commands (like “py -3.6”).
#HOW DO YOU INSTALL PYTHON ON MAC HOW TO#
How to Update Python in Linux, Mac, or Windows Here’s an easy tutorial on how to update Python.
Updating Python can be confusing regardless of which OS you’re running.ĭo you remove the old version first? Or can you update the package directly? The most recent version of Python – Python 3.9 – introduces features like Union Operators in dict, the Flexible function, and Type Hinting Generics. Python receives a major update once every 12 months, with bug-fix updates and security patches being released every few months. Last Updated: Wednesday 29 th December 2021