The Tech Nerd
  • Home
  • Tech Guide
  • Gaming
  • Hardware & Gadgets
  • Apps

Subscribe to Updates

Get the latest creative news from TheTechNerd about technology.

Latest Trends

How to Turn Off Phone Without Power Button: iPhone and Andriod

September 17, 2023

Can’t Find Screenshots in Windows? Try These Tips & Fixes

September 17, 2023

iPhone 15 Specs, Models, and Prices

September 17, 2023
Facebook Twitter Instagram
  • Home
  • Privacy Policy
  • About Us
  • Contact Us
  • Sitemap
Facebook Twitter Instagram
The Tech NerdThe Tech Nerd
Subscribe
  • Home
  • Tech Guide
  • Gaming
  • Hardware & Gadgets
  • Apps
The Tech Nerd
Home » Home » Learn How to Install Python with these Easy Steps
Programming

Learn How to Install Python with these Easy Steps

Jay ArmstrongBy Jay ArmstrongNovember 28, 2022Updated:November 28, 2022No Comments4 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
how to install python
Share
Facebook Twitter LinkedIn Pinterest Email

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.

Table of Contents

  • How Can I Check What Python Version Windows Has?
  • How Can I Check What Python Version Mac Has?
    • How to Install Python on Windows with the Official Installer
    • How to Install Python on Mac with the Official Installer
  • Conclusion

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 :

  1. Press the Windows Key
  2. Type Powershell
  3. 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:

  1. Type Command + Space
  2. Spell out terminal
  3. 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.

Related

How to install python
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Jay Armstrong
  • Website

Related Posts

How to Turn Off Phone Without Power Button: iPhone and Andriod

September 17, 2023

Can’t Find Screenshots in Windows? Try These Tips & Fixes

September 17, 2023

10 Expert Tips: How to Make Windows 11 Faster

September 16, 2023
Add A Comment

Leave A Reply Cancel Reply

Editors Picks
Top Reviews
Facebook Twitter Instagram
  • Home
  • Privacy Policy
  • About Us
  • Contact Us
  • Sitemap
© 2023 The Tech Nerd.

Type above and press Enter to search. Press Esc to cancel.