These days, Python is increasingly widely used, thus understanding how to install Python is crucial. The greatest way to start when learning to program is using Python, which is a fairly popular language.
Python is typically not installed by default on Windows, and if you are a Mac user, Python 2.7 comes pre-installed, but the bad news is that Python 2.7 has been retired. You can, however, use the command prompt to run a single line of code to see if it is present on the computer.
How Can I Check What Python Version Windows Has?
You can check the version of python using Powershell in the command line application:
Steps to open Powershell :
- Press the Windows Key
- Type Powershell
- Press Enter
You can alternatively do this by right-clicking the start menu and searching for Windows PowerShell. Run the following command on the command prompt to see if it is present on the system: python—version
How Can I Check What Python Version Mac Has?
You can check the version of python using the Terminal application:
Steps to open the Terminal application:
- Type Command + Space
- Spell out terminal
- Hit return
You can now check to see if Python 2.7 is already installed on your Mac by typing the following command and pressing the return key:
% python --version
Python 2.7.18
To check if Python 3 is installed on your Mac run the following code:
~ % python3 --version
How to Install Python on Windows with the Official Installer
Step 1: To Install Python, go to www.python.org, which is the official Python website. Point your cursor on downloads and select the Windows option.

Step 2: This will take you to a page where you can find various Python releases. There are 32-bit (labeled x86) as well as 64-bit (labeled x86-64) versions available, in addition to various installer flavors for each. Because I’m running a 32-bit system, I’ll use the Windows installer (32bit).

Step3: After downloading the executable file, open it to install Python. Click on Run to begin the installation process. Once this pops up, click on Install now.

Step4: After the installation is complete, the below box should appear saying the “Setup was successful”. If you don’t see this you can head over to the help page of the official Python site for more details on how to install python.

Step 5: Now that the installation is complete, you can search for Python in Start and see IDLE (Python 3.7 32-bit). Let’s launch IDLE, which stands for Integrated Development Environment, and execute a simple print statement.

As you’ve seen, the Python Shell successfully printed “Installation Complete.” You can type one line of code into the Python Shell and hit Enter to run it. Python also comes with a command-line interpreter which works similarly to the Python IDLE.
How to Install Python on Mac with the Official Installer
- To install Python for Mac head over to the official Python website, It instantly recognizes your OS system and displays a sizable button to download the most recent Python installer for your Mac. If it doesn’t, select the most recent Python release by clicking the macOS link.
- Double-click the package after downloading is finished to begin installing Python. To confirm that you want to install Python, you might also need to enter your Mac’s password. You should note that if you are using Apple M1 Mac, you need to install Rosetta. Rosetta enables Intel-based features to run on Apple silicon Macs.
- After the installation is complete a Python folder will open where you will find the IDLE. Open the IDLE and run a simple code like
print("Hello World")
Conclusion
Now that you have successfully learned how to install Python on your system is time to get to know the 8 Best Text Editors For Productive Work and also The Best Python Books In 2023 You Should Get.