Install Python Without Errors
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 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.
Steps Of Installation:
🚀 Head over to python.org
🚀 Go to the
🚀 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
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
🔸 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
🔸 Copy and paste the path of python as the value name and PATH as the variable name.
🔸 Save or Add or Ok
🔸 Restart all terminals.
Alternatively, You can use the
where command in the terminal to locate the path.
Adding Python to PATH makes it possible for you to run (use) Python from your command prompt (also known as command-line or cmd).
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
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
🎈 To Enter into terminal, run
If you get any errors, please make sure that you have followed the above steps promptly.
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.
Read More About Python 3.10 Features From Real Python :
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.
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 🤓