Here is a way to install python on windows, mac or linux (commands vary depending on the operating system): During the rest of the article you want check details on the rest of the installation steps depending on your operating system. Updating Python on Windows OS: To update Python on a Windows Operating System to the latest, we can choose one of 2 ways, it's up to you which want you want to follow: 1. Downloading the Python installer of the version we want. 2. Making use of Windows Chocolatey, a powerful package manager. Update by downloading the Python version The installer we'll find it on Select (if there's a new version when you read this article, it won't be Python 3.11.1) Scroll until you find a table with all the version available and select the one that suits you the best (in our case ) Once downloaded run the installer and follow instructions. If there's not a installed Python version already, it'll install this version. If there's a Python version already installed, it'll upgrade it. You can verify your installation/upgrade by opening or terminal and typing 🖐 For a more in depth guide regarding this procedure, please head to our step by step guide on where we cover with pictures of every step. Update Python version using Chocolatey Package Manager Chocolatey Package Manager has become a favorite among Windows users when handling Python versions or adding other software to our System using PowerShell. Installing Chocolatey Open the PowerShell as administrator. On your start menu type and select Install Chocolatey using the following command: Verify Chocolatey installation. On the terminal, type . Updating Python with Chocolatey Having Chocolatey installed in our System, upgrading Python is now as simple as typing: Let's verify that the install and upgrade was successful with the command we used earlier Updating Python on MacOS Even if almost the entire Python community has moved to Python 3.X, MacOS still comes with version 2.9. To use the latest Python version you'll need to install it manually. Checking python version on MacOS: Let's first check if your System is indeed using the version 2.9 or a later one. Open the terminal. You can find it on MacOs spotlight and typing type If you receive a message like this: It means that you need to update your python version ASAP, so let´s get into it. There are 2 options to update Python on MacOs: 1. Download and install the version from python 2. Use Homebrew to intall pyenv package manager and then install the Python version(s) you want Update by downloading Head to Select the latest version ( latest version when writing this article ) or scroll until you find the version you want. Once download finishes, run the installer Verify the installation opening the terminal and typing the following command Getting ready to upgrade with Homebrew: To handle our Python development enviorments and Python version we use , a powerfull package manager for all Mac Operating Systems. Install homebrew with the following command: Most probably, you'll be prompted for (Super User level access) and to grant it, you´ll need to write your password. Keep in mind, what you write, will not be displayed, not even with . Confirm installation with (Enter) or cancel with any other key. Now that we installed Homebrew on our System, we´ll install to manage our Python versions more efficiently. Installing with pyenv (recomended) What will allow us to do, is to switch between different Python versions (remember, Python 4 will come out soon, yay!) Open a terminal as we did earlier It´s done! We now have pyenv installed and now we'll make a new Python installation or upgrade it. Installing/Updating Python on pyenv Thanks to pyenv we now can install Python with a simple one liner: It´s not mandatory to use version 3.9.9, you can instead pass any version you wish to install. Installation errors If you receive an error regarding most probably is XCode related and if you upgrade your MacOS to Big Sur, then probabilities goes higher. Fixing this problem ain´t a big problem, but will take as much time as your internet speed will allow it. Download the latest version of Re run the previous commands and it should work just fine Set up your MacOS path for pyenv (Bash) To use our pyenv we need to update our with the following commands: With directory Without directory If your System doesn't have a directory in the folder most probably, you only have directory. If it´s the case, you'll need this commands instead Reseting the terminal to get the changes We need to reset the terminal in order for all this changes to be accesible. To reset the terminal, just type: Update Python on Linux We´ll be using deadsnakes ppa (Personal Package Archives) that'll allows us to have multiple python versions installed on our System at the same time. First we need to inlude deadsnakes to our repositories trusted list After installation finishes, we'll be able to install any Python version we want with the following