Install Python Without Errors

Install Python Without Errors

ยท

3 min read

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 ๐Ÿค“

ย