Special offer
popup-offers
English
+370 5 205 5502 sales@monovm.com

How to Update Python Version

Python is an open-source high-level programming language that allows users to execute commands and plugins on their machine and even software from several major suppliers. It means that you can operate it on many different operating systems, including the Windows VPS Server. Python is cross-platform.

08 Jun, 21 by Antoniy Yushkevych 3 min Read

Everything You Need to Know About Updating Python

Pip is one of the best applications for Python packages installation and administration. Pip's popularity stems from the large number of apps that use this tool. Pip enables 3rd Party package installed to manage binary packages with the quickly configured package manager. Since Python's latest releases have piping as normal, this guide will explain how Pip is installed, its version is checked, and some simple commands are shown. 

 

Introduction to PIP

PIP is a software management framework for installing and managing Python-written program packages. It is called the 'preferred software installer' or 'Pip Installs Packages.' PIP used for Python is a command-line interface for handling PyPI program installation. You might need to upgrade PIP if you're using an earlier version of Python on Windows. Download the application file, open the command- line and start the installer to run PIP on Windows quickly. It will teach you how PIP is installed on Windows, how it can be modified, upgraded, and set up.

 

Windows Operating System

Go to the Python update page and download and install the Python 3.9 installer to update the python on your windows system. You're still undecided about which version to have. It is recommended to use the Windows x86–64 executable installer.

Python Installer (Recommended) (Screenshot from the Python Download page)

Check the "Add Python to Path" option during installation to register Python3.9 as your system's main Python.

$ python --version

Python 3.9.0

MAC OS

You can download Python for macOS from the Python download website, much as you can for Windows, updating the Python in your system. Then, as seen in the sample commands below, you can search your Python version:

$ python --version

Python 2.x.x

$ python3 --version

Python 3.9.0

If you want to execute this new Python release with the python command instead of python3, install an alias in your $HOME directory's bash profile file.

Open the terminal window and type the following commands:

$ cd $HOME

$ nano .bash_profile

Then, at the bottom, add this segment.

alias python="python3"

Python 3.9 version can be checked using the following command.

$ python --version

Python 3.9.0

LINUX

Users can use the following commands in LINUX:

ppa:deadsnakes/ppa can be added to the system's Software Sources to upgrade the machine with unsupported packages from this untrusted PPA.

$ sudo add-apt-repository ppa:deadsnakes/ppa

This command is used to update the python

$ sudo apt update

$ sudo apt install python3.9

Then, using the commands below, you can search the versions of your new and current Python installations:

This command will show you the following version of python installed in your system

$ sudo python --version

2.x.x

$ sudo python3 --version

3.8.x

$ sudo python3.9 --version

3.9.0

 

Conclusion

We have seen how to update Python on operating systems like Windows, Mac OS, and Linux. Follow the guide carefully to update your python software. Leave your comments below for your feedback and queries. 

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at a.yushkevych@monovm.com