Ronnie Atuhaire
Ronnie Atuhaire's Blog 🤓

Ronnie Atuhaire's Blog 🤓

Install Python Without Errors

Install Python Without Errors

Subscribe to my newsletter and never miss my upcoming articles

Hey buddy 👋, welcome to my little world. Today, we shall learn how to install Python without getting errors and Python not being recognised.

If you are a novice in programming languages and would love to start with Python, I want to congratulate you and welcome you to the Pythonistas Community.

You probably chose Python because of its simplicity and friendliness. You could have another reason.

Python Versions:

Python has various versions available with differences between the syntax and working of different versions of the language. We need to choose the version which we want to use or need.

There are different versions of Python 2 and Python 3 available. Python 2 reached its end of life last year.

image.png
The latest version at the time of writing this article is Python 3.10.0 and its End Of Support is October 2026 with the PEP 609 release.

Steps Of Installation:

Windows:

🚀 Head over to python.org
🚀 Go to the Downloads section
image.png 🚀 Click on Python 3.10.0 for the latest and the installer will download
🚀 Alternatively you can select the version of Python to install from the list here but I would recommend the latest because of bug fixes, support and security.
🚀 I am assuming a 64-bit machine, If you are not sure.
First, find out if you have 64 bit or 32 here
🚀 If it is 32-bit, check out the installer here
🚀 Run executable installer after downloading. You need admin rights for this
Follow the steps and kindly check the Add Python To Path

image.png

In case you forgot to check the add path option.

🔸 In the search bar, type edit environment variables
🔸 Find the path where it is installed and usually it is C:/users/yourname/programs
🔸 If you changed the directory, simply head over to that path because our point is to locate the python.exe installer.

🔸 Click on Path, edit add
🔸 Add new If it does not exist

image.png 🔸 Copy and paste the path of python as the value name and PATH as the variable name.

image.png 🔸 Save or Add or Ok
🔸 Restart all terminals.

Alternatively, You can use the where command in the terminal to locate the path.

image.png

Adding Python to PATH makes it possible for you to run (use) Python from your command prompt (also known as command-line or cmd).

Optional Features

The offline installer includes the components necessary for a default installation and only requires an internet connection for optional features. Though this will take more time. You can check all

image.png The above features include Tkinter, a standard Python GUI and Official Docs that you will need offline.

To Check For Python Version

🎈 Simply open the terminal or search cmd and type
🎈 Type python --version
🎈 To Enter into terminal, run python or py

If you get any errors, please make sure that you have followed the above steps promptly.

Mac:

Mac OS usually comes with Python 2 installed but that version is deprecated and is no longer supported.

As far as I know, you should not tamper or mess with that version since the OS also uses it.

Now, head over to ether of these two articles:
🔹 The HitchHikers Guide
🔹 Free Code Camp Article

Read More About Python 3.10 Features From Real Python :

image.png

Other Platforms:

Ubuntu and other versions of Debian Linux ship with Python 3 pre-installed. You just need to update them.

To Install on others read more here.

Conclusion

Congs 🎉 If you successfully installed Python without errors.

Now go read the official docs about the language for more.

Please consider subscribing for related content.

Happy Learning 📑 Happy Coding 🛠

Ronnie Atuhaire 🤓

 
Share this