How to Install Python on Windows – Possible Issues after Installation

1. Install Python – Objective

Previously, we discussed Introduction to python. In this Install Python Windows tutorial, we will see how to install python windows. Along with this, we will discuss issues we faced after the installation of Python.

Learn: Python Syntax and Semantics for Beginners

So, let’s start how to install Python Windows Tutorial.

How to Install Python on Windows - Possible Issues after Installation

How to Install Python on Windows – Possible Issues after Installation

2. How to Install Python on Windows?

Installing and running Python on your personal computer is no difficult task. It involves just a few simple steps:

  • Download binaries from python.org
  • Install the binaries
  • Add Python to system environment variables
  • Install pip
  • [Optional] Install virtualenv using pip

a. Download binaries from python.org

Python Installation

Install Python 3 on Windows

Firstly, to install Python Windows you need to download required binaries from the following link:

https://www.python.org/downloads/

We recommend you to download Python latest (Python 3.6.3, currently) installer for Windows.

If you have a different OS, download binaries accordingly. You may choose an x86-64 installer if you have a 64-bit system. Choose an x86 installer if you have a 32-bit system. But you can also click on the download button in the page header.

b. Install Python binaries

Next, you need to install the binaries you downloaded.

Run the installer. It will show you two options.

Install PIP Windows

This is the default option. It also includes the IDLE (Integrated Development Environment),

pip, and the official documentation. It also creates shortcuts.

Learn:Python Comment, Indentation and Statement

Customize Python Installation

This option allows you to choose the features that you want.

Install Python 3 on Windows: Customize Python Installation

Install Python 3 on Windows: Customize Python Installation

You will see the following checkboxes:

  • Documentation
  • pip
  • tcl/tk and IDLE- installs tkinter and the IDLE
  • Python test suite- This installs the standard library test suite of Python

Advanced Options while Installing Python

Python Installation

Install Python on Windows: Advanced Options while Installing Python

  • Next, it gives you a set of advanced options:
  • Install for all users
  • Associate files with Python (requires the py launcher)
  • Create shortcuts for installed applications
  • Add Python to environment variables
  • Precompile standard library
  • Download debugging symbols
  • Download debug binaries (requires VS 2015 or later)
  • You may also specify the location to install the directory at.

Learn: Variables and Data Types in Python

Other than these two options, the installer also asks you if you want to add Python to PATH.

We will look at this in step 3. Click ‘Install’ and wait till the progress meter hits the end.

""System

Locate the Python directory on your computer and append the location to the end of the PATH variable. It may look like this: C:\Users\lifei\AppData\Local\Programs\Python\Python36-32

An environment variable holds values about the current environment. You need it so you can access Python through the command line.

d. Install pip

If you tick the checkbox for pip in Step 2, pip will install for you.

e. [Optional] Install virtualenv using pip

Install Python

Python Installation – Install virtualenv using pip

"<yoastmark

This step is optional. If you install virtualenv, you can create a virtual Python environment. Now you don’t need to worry about version conflicts among projects. Use pip to install it:
pip install virtual env

Pip will install this for you.

Learn:Python Strings with String Functions and String Operations

3. After You Install Python on Windows

You have now installed Python. Now, you can find a list of programs in the Start Menu.

Python 3 Install on Windows

Install Python 3 on Windows

So now, you can reach Python in the following ways:

a. Command Prompt

You can run Python on the command prompt in two ways:

1) The Conventional way

Search for Command Prompt, and type the following:

python

Now, you can use it as an interpreter. As an example, we have calculated 2+3.

Install Python 3 on Windows

Install Python 3 on Windows

2) Using the Start Menu

Open the Start menu. Click on Python 3.6 (32-bit). This will take you to the command prompt for Python. You can now begin coding.

Learn: Python Operators with Syntax and Examples

b. The IDLE

install python 3 on Windows

Python 3 install on Windows

You can use the Integrated Development Environment to code in Python. If you use the Python Shell, you can use it as an interpreter. Otherwise, you can create a new file to write a Python program. Later, you can save it and click ‘Run’ to run the program.

for a in range(7):
print(a)

c. Python 3.6 Manuals (32-bit)

This is the official Python documentation. You can refer to it when you run into an issue with a program.

d. Python 3.6 Module Docs (32-bit)

This takes you to the index of modules available in Python through a localhost.
Learn:Bitwise Operator in Python with Syntax and Example

Python Interview Questions

4. Possible Issues After Python Installation

So, this was all about the Install Python Windows Tutorial. Hope you like the tutorial on Install Python on Windows.

5. Conclusion – Install Python Windows

We saw how easy it is to set up an environment for you to install Python on your computer. It does not take more than 5 minutes in the best case. See you in the next lesson where we explain the syntax of Python.

If you have any query or feedback on the tutorial on Install Python on Windows, drop a comment and we will get back to you.

See also – 

Python Methods

For reference

5 Responses

  1. RAMESHA KS says:

    when i am installing it showing following message for all types of version:
    No python 3.6 installation was detected
    But my system: 32bit operating system, 64bit based processor and windows:10
    I tried so many times, it showing same message what i mentioned, please help me
    mail:rameshakscsip@gmail.com

    • Data Flair says:

      Hello, Ramesha
      Thank you for visiting Data-Flair!!!
      The error you encountered could be due to one of the multiple reasons. You could try the following Steps to Install Python in Windows. If it still hasn’t been resolved-
      1. Uninstall Python, if any
      2. Download the installer for the configuration your system supports. Alternatively, you can download the following installer-
      https://www.python.org/ftp/python/3.7.0/python-3.7.0-webinstall.exe
      3. Run the installer, try choosing ‘Install Now’ to install Python with default settings.
      4. Where it asks you if want a custom install location or want to install for all users, select only one option.
      5. Add Python to your PATH.
      Let us know how you solve the issue.

  2. Osman says:

    For Windows OSs, is 32 bit the only downloadable python software?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.