Question: How to Install Python on Windows?
Contents

Let’s take a look at how to install Python 3 on Windows:

  • Step 1: Download the Python 3 Installer. Open a browser window and navigate to the Download page for Windows at python.org.
  • Step 2: Run the Installer. Once you have chosen and downloaded an installer, simply run it by double-clicking on the downloaded file.

Steps

  • Open the Command Prompt.
  • Go to your Start Menu.
  • Type into the Command Prompt window:
  • This is a simplejson-2.1.6.tar.gz file, which in Windows language means it is a strange and otherworldly kind of zip file.
  • Use PeaZip to extract (uncompress / unzip) simplejson-2.1.6.tar.gz into your Download directory.

Open a command prompt window and navigate to the folder containing get-pip.py . Then run python get-pip.py . This will install pip . Verify a successful installation by opening a command prompt window and navigating to your Python installation’s script directory (default is C:\Python27\Scripts ).Open a command prompt window and navigate to the folder containing get-pip.py . Then run python get-pip.py . This will install pip . Verify a successful installation by opening a command prompt window and navigating to your Python installation’s script directory (default is C:\Python27\Scripts ).Restart your console and/or Windows after setting variable.

  • In the same section as above (“Environment Variables”), add new variable with name PYTHON and value C:\Python27\python.exe. Restart your console and/or Windows after setting variable.
  • Open Windows command line ( cmd ) in Admin mode.

How do I download and install Python on Windows?

Installing

  1. Double-click the icon labeling the file python-3.7.0.exe. An Open File – Security Warning pop-up window will appear.
  2. Click Run. A Python 3.7.0 (32-bit) Setup pop-up window will appear.
  3. Highlight the Install Now (or Upgrade Now) message, and then click it.
  4. Click the Yes button.
  5. Click the Close button.

How do I run Python on Windows?

Run your script

  • Open Command line: Start menu -> Run and type cmd.
  • Type: C:\python27\python.exe Z:\code\hw01\script.py.
  • Or if your system is configured correctly, you can drag and drop your script from Explorer onto the Command Line window and press enter.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest