In order to update python version on the terminal, you can use these commands depending on your operating system: In this article we focusing on updating python using the terminal but there are many and other ways on . Update Python on Windows Terminal To you should download the Python version you want to upgrade to from . In case you already have installed different Python versions and want to update the version of a virtual environment, you can do it by using the following command: To select which Python version we want to use, it's as simple as as writing , example: Updating Python on Linux Terminal Before getting into upgrading Python, we need to know if it's already installed (no use to upgrade something that doesn't exist). To check if Python is installed type the following: If there's an installed version of Python, the output should show you the installed version like this: If your computer doesn't have Python installed, we need first to prepare our system to install Python, so we do the following: Once we have downloaded the necessary files to install Python latest version, we can install it using (recommended) or using the source code. Update with Apt Get There's no need to reinvent the wheel, it's a package manager built in Linux that will make our life easier while installing. As a first step, let's configure the on the system by running the following command: Time to update the Apt cache and install the Python package: Python is now updated, but still is pointing to the previously installed version. We need now to update this: A list of options will be displayed and prompt to pick the Python version you want to point to, select it by writing the number corresponding to the version you want to use. To verify this selection, write: Updating Python on MacOs Terminal Updating Python on MacOs is more straight forward. In MacOs systems you can as well have different Python versions installed at the same time. This makes it simpler to update it by visiting MacOs download page, select the installer to download and run it. If you are more of a user, run the following commands: Once the installation finishes, you'll have the latest Python version installed which you can verify with the following code: Hope you enjoy the reading and keep on the Geek side, you can check the 4Geek's Blog for more relevant content like .