Published on

How To Install Python On Window 10

Introduction

Python is a widely used high-level programming language first launched in 1991. Since then, Python has been gaining popularity and is considered as one of the most popular and flexible server-side programming languages.

Unlike most Linux distributions, Windows does not come with the Python programming language by default. However, you can install Python on your Window 10 just a few easy steps.

In this tutorial, you will learn how to:

  • Check which version of Python, if any, is installed on your machine
  • Install or update Python on Windows 10

How to check your Python version on Windows 10

To check if you already have Python installed on your window 10 machine, first open a command-line application, such as powershell or cmd.

Tip :-

Her's how you open Powershell or cmd press Win + r and Type Powershell or cmd and press enter.

With the command line open, type in the following command and press Enter:

Powershell
C:\Users\hkrhasan> python --version
Python 3.9.5

Using the --version switch will show you the version that’s installed. Alternatively, you can use the -V switch:

Note:- If you don’t have a version of Python on your system, then the above commands will launch the Microsoft Store and redirect you to the Python application page. You’ll see how to complete the installation from the Microsoft Store in the next section.

There are three ways to install Python on Windows 10

  1. Microsoft Store package:
  2. Full Installer:
  3. Window subsystem for Linux(WSL):

Method 1: Install From Microsoft Store package

  1. Open the microsoft store and search for Python.
search-python-microsoft-store
  1. Select Python 3.10 or the highest version number you see available in the app. open the installation page and follow the instructions to install Python.

  2. Click Get Started to begin the installation.

start-installation-python-microsoft-store
  1. Wait for the application to download. When it's finished downloading, the get button will be replaced with a button that says "Install" on my Devices.
install-python-microsoft-store
  1. Click install on my devices and select the devices on which you'd like to complete the installation.
install-python-select-device-microsoft-store
  1. Click Install Now and then Ok to start the installation.
install-python-install-now-microsoft-store
  1. If the installation was successful, then you'll see the message "This product is installed" at the top of the Microsoft Store Page.

Congratulations! you now have access to Python 3.10 on your Windows 10 machine, including the pip and IDLE.

Method 2: Install From the Full Installer

For professional developers who need a full-featured Python development environment, installing from the full installer is the right choice. It offers more customization and control over the installation than installing from the Microsoft Store.

You can install from the full installer in two steps.

  1. Download the installer from the python official website.

Under the “Python Releases for Windows” heading, click the link for the Latest Python 3 Release - Python 3.x.x. As of this writing, the latest version was Python 3.10.0.

python-download-official

Note :- scroll to the bottom and select either Windows x86-64 executable installer for 64-bit or Windows x86 executable installer for 32-bit.

  1. Run the Installer

    • Once you've chosen and downloaded the installer, run it by double clicking on the downloaded file. A dialog box like the one below will appear:

      python-installer-dialog

There are four things to notice about this dialog box:

  1. The default install path is in the AppData/ folder of the current window user.
  2. The customize installation button can be used to customize the installation path and which additional features get installed including pip and IDLE.
  3. The install launcher for all user(recommended) is checked default. This means every user on the machine will have access to the py.exe launcher. you can uncheck this box to restrict Python to the current Window user.
  4. The Add python path 3.10 to path checkbox is unchecked by default. This means the py.exe launcher directory will be added to the system path. make sure you checked this box if you want to launch python anywhere/anydirectory in the system.

The full installer gives you total control over the installation process.

  • Customize the installation to meet your needs using the options available on the dialog box. Then click Install Now. That’s all there is to it!
start-installation-python-full-installer
  • Congratulations—you now have the latest version of Python 3 on your Windows machine!
python-installer-success