The Wayback Machine - https://web.archive.org/web/20240827233303/https://www.geeksforgeeks.org/how-to-install-python-on-windows/
Open In App

How to install Python on Windows?

Last Updated : 25 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Python is a high-level programming language that has become increasingly popular due to its simplicity, versatility, and extensive range of applications. The process of How to install Python in Windows, operating system is relatively easy and involves a few uncomplicated steps.

This article aims to take you through the process of downloading and installing Python on your Windows computer. To Install Python on Linux or Mac visit the below link:

How to Install Python in Windows?

We have provided step-by-step instructions to guide you and ensure a successful installation. Whether you are new to programming or have some experience, mastering how to install Python on Windows will enable you to utilize this potent language and uncover its full range of potential applications.

To download Python on your system, you can use the following steps

Step 1: Select Version to Install Python

Visit the official page for Python https://www.python.org/downloads/ on the Windows operating system. Locate a reliable version of Python 3, preferably version 3.10.11, which was used in testing this tutorial. Choose the correct link for your device from the options provided: either Windows installer (64-bit) or Windows installer (32-bit) and proceed to download the executable file.

 install Python on Windows

Python Homepage

Step 2: Downloading the Python Installer

Once you have downloaded the installer, open the .exe file, such as python-3.10.11-amd64.exe, by double-clicking it to launch the Python installer. Choose the option to Install the launcher for all users by checking the corresponding checkbox, so that all users of the computer can access the Python launcher application.Enable users to run Python from the command line by checking the Add python.exe to PATH checkbox.

 install Python on Windows

Python Installer 

After Clicking the Install Now Button the setup will start installing Python on your Windows system. You will see a window like this.

Python Setup

Python Setup

Step 3: Running the Executable Installer

After completing the setup. Python will be installed on your Windows system. You will see a successful message.

Python Installed

Python Successfully installed

Step 4:  Verify the Python Installation in Windows

Close the window after successful installation of Python. You can check if the installation of Python was successful by using either the command line or the Integrated Development Environment (IDLE), which you may have installed. To access the command line, click on the Start menu and type “cmd” in the search bar. Then click on Command Prompt.

python --version
Python Verification

Python version

You can also check the version of Python by opening the IDLE application. Go to Start and enter IDLE in the search bar and then click the IDLE app, for example, IDLE (Python 3.10.11 64-bit). If you can see the Python IDLE window then you are successfully able to download and installed Python on Windows.

Python IDLE

Python IDLE

Getting Started with Python

Python is a lot easier to code and learn. Python programs can be written on any plain text editor like Notepad, notepad++, or anything of that sort. One can also use an Online IDE to run Python code or can even install one on their system to make it more feasible to write these codes because IDEs provide a lot of features like an intuitive code editor, debugger, compiler, etc. To begin with, writing Python Codes and performing various intriguing and useful operations, one must have Python installed on their System. 

You can refer to this article to learn more about Python – Python Tutorial

How to install Python on Windows? – FAQs

How to Install Python on Windows?

To install Python on Windows, you need to download the Python installer from the official Python website and run it on your system. The installation process is straightforward and includes options to add Python to your system PATH.

What Are the Steps to Install Python 3 on Windows?

Steps to Install Python 3 on Windows:

  1. Download the Installer:
    • Visit the official Python website: python.org.
    • Go to the Downloads section and click on “Download Python 3.x.x” (the latest version).
  2. Run the Installer:
    • Locate the downloaded installer file (python-3.x.x.exe) and run it.
  3. Select Installation Options:
    • Check the box that says “Add Python to PATH” at the bottom of the installer window.
    • Choose “Install Now” for a standard installation or “Customize Installation” to choose specific features and installation location.
  4. Customize Installation (Optional):
    • If you chose “Customize Installation,” select optional features like pip, tcl/tk, and documentation.
    • Choose the installation location or accept the default.
  5. Complete the Installation:
    • The installer will copy the necessary files and set up Python on your system.
    • Once the installation is complete, you can close the installer.

How to Verify Python Installation on Windows?

Steps to Verify Python Installation on Windows:

  1. Open Command Prompt:
    • Press Win + R, type cmd, and press Enter to open the Command Prompt.
  2. Check Python Version:
    • Type python --version and press Enter.
    • You should see the installed Python version, e.g., Python 3.x.x.
  3. Check pip Version:
    • Type pip --version and press Enter.
    • This verifies that pip, the Python package installer, is also installed correctly.

What Are Environment Variables for Python on Windows?

Environment Variables for Python on Windows:

Environment variables are used to configure the environment in which processes run. For Python, you often need to set the PATH environment variable so that you can run Python and pip from the command line. This ensures that Python executables and scripts can be accessed from any command line prompt without specifying their full path.

How to Configure Python Path on Windows?

Steps to Configure Python Path on Windows:

  1. Add Python to PATH During Installation:
    • When running the Python installer, ensure you check the box that says “Add Python to PATH.”
  2. Manually Add Python to PATH:
    • Open the Start menu, search for “Environment Variables,” and select “Edit the system environment variables.”
    • In the System Properties window, click on the “Environment Variables” button.
    • Under “System variables,” find the Path variable and click “Edit.”
    • Click “New” and add the path to the Python installation directory (e.g., C:\Python39) and the Scripts directory (e.g., C:\Python39\Scripts).
    • Click “OK” to close all windows.
  3. Verify PATH Configuration:
    • Open Command Prompt.
    • Type python and press Enter to start the Python interpreter. If Python starts, the PATH is configured correctly.
    • Type exit() to exit the Python interpreter.
    • Type pip and press Enter to verify that pip can be called from the command line.


Similar Reads

How to Install the Windows Subsystem for Linux on Windows 11?
As a programmer, it is very important to test software on multiple platforms. However, it can be very tedious and inefficient to use multiple virtual machines to achieve the same. Thankfully, this process can be simplified if you are using Windows and wish to run a Linux distribution - with WSL. WSL, or Windows Subsystem for Linux, lets developers
2 min read
How to Download and Install Windows Movie Maker on Windows 10?
Movie Maker video is one of the best video editors available on the Microsoft store itself and is absolutely free. Movie maker video editor is a single-OS software, i.e. it works only in windows, and not on macOS, and Linux. Movie maker has more than 10 million users worldwide. Some of the very cool features of movie maker video editors are that th
2 min read
How to Install Mutagen for Python on Windows?
There are many important python modules or packages from which Mutagen is used for handling the audio metadata also known as music metadata, it is an independent python standard library and is available open source and free for windows, macOS, and Linux operating systems, etc. Here we will learn how to install the Mutagen module on the windows oper
2 min read
How to Install Python Pyscreenshot on Windows?
PyScreenshot is a Python module and built since the PIL ImageGrab module only supported Windows, although Pillow now supports Linux and macOS as well. Flexible backends, Wayland compatibility, occasionally superior performance, and optional sub-processing are some of the main features of PyScreenshot that make it more useful in many scenarios. Usin
2 min read
How to download and install Python Latest Version on Windows
Python is a widely-used general-purpose, high-level programming language. This article will serve as a complete tutorial on How to download and install Python latest version on Windows Operating System. Since windows don't come with Python preinstalled, it needs to be installed explicitly. In windows, there is no universal library for installing Py
2 min read
How to Install Python Tensorflow in Windows?
Tensorflow is a free and open-source software library used to do computational mathematics to build machine learning models more profoundly deep learning models. It is a product of Google built by Google’s brain team, hence it provides a vast range of operations performance with ease that is compatible with human behavior for ML and DL. It can run
3 min read
Convert Python Code to a Software to Install on Windows Using Inno Setup Compiler
Users are only given the installer for any kind of software, companies didn't give the source code file to the user. Although some open source software is available with its source code. We can also make an installer from our python source code so that you don't have to share your source code.Write your python code using any graphical library, i am
2 min read
How to Install Fabric in Python on Windows?
Fabric is a Python library used to execute shell commands remotely over SSH, yielding useful Python objects in return.. In this article, we will look into the process of installing the Fabric Library on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending upon user pre
2 min read
How to Install CMake for Windows in Python?
CMake is a cross-platform free and open-source software tool for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries. Installation of CMake CMake in Python can be easily installed with the use of pip package management tool provided by pytho
1 min read
Python - Install Paramiko on Windows and Linux
The high-level python API starts with the creation of a secure connection object. To have more direct control and pass a socket to transport to start remote access. As a client, it's authenticating using a user credential or private key, and checking the server’s host key. Paramiko is a Python library that makes a connection with a remote device th
1 min read
How to Install PyQt for Python in Windows?
In this article, we will be looking at the stepwise procedure to install the PyQt for python in Windows. PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. PyQt is free software developed by the British firm Riverbank Computing. Features of PyQt: There are more than six hundred classes covering a range o
2 min read
How to Install Python sympy in Windows?
Sympy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python. SymPy only depends on mpmath, a pure Python library for arbitrary floating-point arithmetic, making
2 min read
How to Install Python Scrapy on Windows?
Scrapy is a web scraping library that is used to scrape, parse and collect web data. Now once our spider has scrapped the data then it decides whether to: Keep the data.Drop the data or items.stop and store the processed data items. In this article, we will look into the process of installing the Scrapy module on Windows. Pre-requisites: The only t
2 min read
How to Install glob in Python in Windows?
The Python Glob module searches all path names looking for files matching a specified pattern according to the rules dictated by the Unix shell. In this article, we will look into, how to install the glob module on Windows. Pre-requisites: The only thing that you need for installing the glob module on Windows are: PythonPIP or Conda (depending upon
2 min read
How to Install xlrd in Python in Windows?
The xlrd module in python is used to retrieve information from a spreadsheet. In this article, we will look into the process of installing the xlrd module in a Windows machine. Pre-requisites: The only thing that you need for installing the xlrd module on Windows are: PythonPIP or Conda (depending upon user preference)Installing xlrd Module on Wind
2 min read
How to Install Pyglet in python on Windows?
The pyglet library is a cross-platform windowing and multimedia library for Python, intended for developing games and other visually rich applications. In this article, we will look into the process of installing Pyglet in Python on Windows. Pre-requisites: The only thing that you need for installing Numpy on Windows are: Python PIP or Conda (depen
2 min read
How to Install SQLAlchemy in Python in Windows?
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that is used as flexible database access using SQL. In this article, we will look into the process of installing SQLAlchemy on a windows machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: Python PIP or Conda (depending upon user preference)Inst
2 min read
How to Install Nose 2 in Python on Windows?
Nose 2 is a successor of Nose package and is used for testing python applications. In this article, we will look into the process of installing Nose2 Package on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending upon user preference)Installing Nose2 Package on Window
2 min read
How to Install cx_oracle in Python on Windows?
The cx_oracle package is used to connect with the Oracle database using python. In this, article, we will look into the process of installing the cx_oracle package on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending upon user preference)Installing cx_oracle package
2 min read
How to Install Chainer Python Library on Windows?
Deep learning is a branch of machine learning based entirely on artificial neural networks, in which algorithms are written to mimic the human brain. Chainer is a powerful open-source deep learning framework, flexible and intuitive, written entirely in Python and based on the NumPy and CuPy Python libraries. In this article, we will see an easy way
2 min read
How to Install Python Six Module on Windows?
The Six Library in python is used to wrap differences between Python 2 and Python 3 for systems that operate both on Python 2 and python 3. In this, article, we will look into the process of installing Python Six Library on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (de
2 min read
How to Install Python's Pymediainfo Module on Windows?
The Python's Pymediainfo Package is a wrapper around the MediaInfo library. In this article, we will look into the process of installing the Pymediainfo Package on Windows. Pre-requisites: The only thing that you need for installing the Scrapy module on Windows are: Python PIP or Conda (depending upon user preference)Installing Pymediainfo Package
2 min read
How to Install Gekko In Python on Windows?
In this article, we will learn how to install Gekko in Python on Windows . GEKKO is a Python package for machine learning and optimization of mixed-integer and differential-algebraic equations. It is coupled with large-scale solvers for linear, quadratic, nonlinear, and mixed-integer programming (LP, QP, NLP, MILP, MINLP). Modes of operation includ
2 min read
How to Install Face Recognition in Python on Windows?
In this article, we will learn how to install Face Recognition in Python on Windows. Recognize and manipulate faces from Python or from the command line with the world’s simplest face recognition library. Built using dlib’s state-of-the-art face recognition built with deep learning. Installing Face Recognition on Windows :Prerequisites: Face Recogn
2 min read
How to Install PyGTK in Python on Windows?
PyGTK is a Python package or module that enables developers to work with GTK+ GUI Toolkit. This is how WikiBooks describes GTK+: "GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API." And this is how gtk.org the official website of GTK markets it: Offe
5 min read
How to Install Jmespath in Python in Windows?
Jmespath is known as the JSON query language for Python. It is used to get the required data from the JSON document or dictionary easily. This library is available for Python as well as other programming languages so you can use it in many places according to the need. In this article, we will be looking at the stepwise procedure to install the Jme
2 min read
How to Install Python docutils in Windows?
Docutils is an open-source text processing system written in Python. It is used to process simple text or plaintext documents into useful formats like LaTex, OpenDocument, HTML, XML, etc. It is easy to use and easy to read, and general and special purpose use. So, in this article, we will be looking at the stepwise procedure to install the docutils
2 min read
How to install python-binance Library on Windows?
In this article, we will be looking at the steps to install the python-binance library on windows. Python-binance is a python library used to automate interactions with Binance cryptocurrency exchange. Installing python-binance library on windows Follow the below steps to install python-binance library on windows: Step 1: Check if Python is install
2 min read
How to Install python-dateutil on Windows?
The dateutil package, which is available in Python 2 and Python 3, adds a lot of features to the conventional DateTime module. Or, to put it another way, it extends Python's DateTime module. It calculates relative deltas such as next month, next year, previous week, and so on. Its time zone data comes from Olson's database. We will learn how to ins
2 min read
How to Install py2exe for Python on Windows?
Py2exe is a Python package that allows the building of standalone Windows executable programs that can be 32-bit or 64-bit from Python scripts. This package has only support to Windows operating system. It can build console executable and windows (GUI) executable. So, in this article, we will be installing the py2exe package in Windows Operating Sy
2 min read
Practice Tags :