How to Install Python on Windows

How to Install Python on Windows

The goal of this blog is to provide clear pratical step-by-step guidance for installing the latest version of Python on Windows.

Python was created by Guido van Rossum and first released in 1991.

It is an open source, interpreted programming language, and is simple to use, readable and extensible. You can split your program into modules that can be reused in other Python programs.

Python supports several paradigms, such as object-oriented, functional, and procedural with the support of a large comprehensible library.

Python releases for Windows

The latest version of Python is 3.9.0, released on Oct. 5, 2020. It contains many new features and optimization. This is the first version of Python to default to the 64-bit installer on Windows. The installer now also actively disallows installation on Windows 7. Python 3.9 is incompatible with this unsupported version of Windows.

If you go to the page: https://www.python.org/downloads/windows/, you will find all releases of Python. The installation process is the same, regardless of the version.

The Python installers for the Windows platform usually include the entire standard library and often also include many additional components. For Unix-like operating systems Python is normally provided as a collection of packages, so it may be necessary to use the packaging tools provided with the operating system to obtain some or all of the optional components.

There are a number of different installers available for Windows, each with certain advantages and disadvantages.

  • Web-based installers: This installer is very small in size. It could be installed in a local computer with web-access. The installer will download necessary files and install them.
  • Executable installer: Best option for installing Python locally. The installer contains all important components and installs them itself. This is the best option for development of any kind of Python projects.
  • The embeddable package: is a minimal package of Python suitable for embedding into a larger application. The embeddable package uses Python as runtime and allows to distribute applications on Windows.

Installing Python 3.9.0 for Windows

Step 1: Open your browser window and navigate : https://www.python.org/downloads/

How to Install Python on Windows

Step 2: Click on button download python 3.9.0 to download Python Executable Installer for Windows. It will start downloading the installer, which is around 27 MB in size.( If you have a lower version of Windows, please click Downloads menu button and select a specific version from the downloads page.)

Step 3: Once finished with the download, double click on the downloaded file to run the installer.

Step 4: The setup windows shows following dialog window with two installation options:

A. Install Now

B. Customize Installation

How to Install Python on Windows

A. If you select “Install Now”:

  • You will not need to be an administrator.
  • This option installs Python in your user directory shown in the dialog box under Install Now option.
  • The standard library, test suite, launcher and pip will be installed.
  • If selected, the install directory will be added to your PATH.
  • If you check the install launcher for all users, it will install python launcher for all the users of your system.

Step 5: The setup process will be shown in a Python 3.9.0(64-bit) Setup pop-up window. How to Install Python on Windows

Step 6: After successful completion of installation the following popup window will be shown with Setup was successful message.

This dialog box also gives you the option to Disable path length limit.

Clicking the “Disable path length limit” option removes the limitation on the MAX_PATH variable. This change won't break anything, but will allow Python to use long path names.

Removing the MAX_PATH Limitation

Windows historically has limited path lengths to 260 characters. This meant that paths longer than this would not resolve, and errors would result; this is termed as MAX_PATH Limitation. In the latest versions of Windows, this limitation can be expanded to approximately 32,000 characters.

How to Install Python on Windows You must save the file python-3.9 exe somewhere on your computer in case you need to reinstall, modify the settings or uninstall python.

python windows programming developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Python Developers

Are you looking for experienced, reliable, and qualified Python developers? If yes, you have reached the right place. At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, our full-stack Python development services...

Hire Python Developers India

Looking to build robust, scalable, and dynamic responsive websites and applications in Python? At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, we constantly endeavor to give you exactly what you need. If you need to...

Python Tricks Every Developer Should Know

In this tutorial, you’re going to learn a variety of Python tricks that you can use to write your Python code in a more readable and efficient way like a pro.

Top Python Development Companies | Hire Python Developers

After analyzing clients and market requirements, TopDevelopers has come up with the list of the best Python service providers. These top-rated Python developers are widely appreciated for their professionalism in handling diverse projects. When...

Python Programming: A Beginner’s Guide

Python is an interpreted, high-level, powerful general-purpose programming language. You may ask, Python’s a snake right? and Why is this programming language named after it?