News/Tech News

How to install Python on Windows 10

Published on Aug 05, 2022

Setting Up Python

DOWNLOAD PYTHON
Visit the Python website (www.python.org) and click on Downloads for Windows.
Python 3 is available in the latest version
Click here to download

Run The Executable Installer

Once your download completes, visit your “download” directory. Then double click python-3.10.5-amd64 file to start the python setup wizard.

At this point, You will get two installation options –

Option 1: Install Now – This option is helpful if you are a newbie. Select “Install now”, and it will install Python 3.9 with default settings. “This path” would be the default Python installation directory. It will also install IDLE, pip, documentation and shortcuts.

Check the following two checkboxes:

The “Install launcher for all users (recommended)” checkbox will install a Python launcher shortcut for every user profile on your computer. Python 3.10.5 will be available to anyone who logs in to your system.

Python 3.10.5 to the path – Select this check box to automatically add Python and pip “Path Variables” in the system environment. After installation, you will need to manually add the path variable if you do not select this option now.

The checkboxes for Add Python 3.10.5 to PATH and Install launcher for all users should be selected.

Now Click on Install Now

Sit back and relax. Python and pip installation will take some time to complete.

Choose “Disable path length limit.”
Windows 10 has now been successfully installed with Python and pip. The “Disable path length limit” option must be selected here. It allows Python to bypass the “MAX_PATH” limitation of 260 characters. It means that your installation directory path exceeds 260 characters. Python cannot add the path variable. Windows 10 has this limitation.
Then select “Disable path length limit” – enable Python 3.10.5 in user access control and choose “Close”.

Option 2: Customize installation – If you are a pro and need to know what all features will be installed with python. Also, if you already have python installed and want to test the latest version. You can choose a different installation folder and keep both python versions using the Customize installation option.

Check the following two checkboxes:

The checkboxes for Add Python 3.10.5 to PATH and Install launcher for all users should be selected.

Click on Customize installation

“Optional Features” can be added or removed

In this window, you can add or remove optional features available with Python 3. Now let’s take a closer look at each optional feature available –

Documentation:- Checking this box will install all Python documentation and manuals.

Pip:- I informed you in Step 1 of the download section. Python 3.10.5 already includes pip. Check this check box if you want pip installed automatically with Python 3.10.5 (which I highly recommend).

Tcl/Tk and IDLE:- Tkinter and the IDLE development environment will be installed if you check this box. Therefore, it does not need to be installed separately.

Python test suite:- Sets up the standard library suite.

Py launcher for all users (requires elevation):- The global ‘py launcher’ is installed for all users. To perform it, you must have administrator rights (height). From their user profiles, all users can conveniently launch Python.

Select the optional features you require and click Next. Keep all options checked, I suggest.

Select Python 3.10.5’s “Advanced Options”

Listed below are the advanced options available, which are self-explanatory.

Install for all users – Python 3.10.5 will be installed for all users on your machine. I am the only user in my case. I don’t care about this option.

Associate files with Python (requires the py launcher) – The associated files should be linked to the Python launcher

Create shortcuts for installed applications – Add shortcut icons to Python, pip, and any installed optional features.

Add python to environment variables – Add Python and Pip environment variables.

Precompile standard library – Includes precompiled libraries.

Download debugging symbols – These symbols add additional information to the symbol table.

Download debug binaries (requires VS 2017 or later) – Installs required and dependent debugging binaries.

Choose the options that suit your needs. If you are a newbie, you can proceed with the default selected options shown in the video.

You can select a custom installation folder (optional).
If you already have Python installed and would like to keep it safe. In addition, you should install a newer version of Python for testing. Click Browse – Select your destination installation folder – click OK and Install.
Click Install

Allow Python 3.10.5 to change your system by selecting “Yes”.

Let Python 3.9 and pip setup finish.

Take a deep breath and relax. It will take some time to install Python and pip.

Choose “Disable path length limit.”
Windows 10 has now been successfully installed with Python and pip. The “Disable path length limit” option must be selected here. It allows Python to bypass the “MAX_PATH” limitation of 260 characters. It means that your installation directory path exceeds 260 characters. Python cannot add the path variable. Windows 10 has this limitation.

Then select “Disable path length limit” – enable Python 3.10.5 in user access control and choose “Close”.

Verify Python Was Installed On Windows

Open the command prompt in your system

Press enter after you have written the code
“ Python”

Here are the details you can see now

Congratulations! Python has been installed on your system. Now go to Python

First Python Program

Windows search
Type IDLE

In Python, IDLE stands for Integrated Development and Learning Environment. Programmers can quickly write Python code with it. IDLE can execute a single statement like Python Shell and create, modify, and execute Python scripts.

Open it.

Start by running your first Python program

Write your code here
print(“Hello World”)

Once you have written the code, press enter
Here are the results
Hello World

Escape Characters

An escape character can be used to insert illegal characters into a string.

Example The escape character allows you to use single quotes when you normally would not be allowed:

lset = ‘London ‘School’ of Emerging Technology
print(lset)

Once you have written the code, press enter

Here are the results now

London’s School’ of Emerging Technology

The escape characters table with examples can be used with your print Python code.

Tech News

New security update now available for Google Chrome 104

Version 104 of Google’s Chrome browser has just been released. While Android and iOS users will find new…

New marketing tools are integrated into Gmail by Google Workspace

Users can now create announcements and newsletters in Gmail and send professional-looking messages to large audiences…

Our Latest Blog

Java Spring Boot

Java Spring Boot: A Comprehensive Introduction to Microservices

Introduction to Java Spring Boot and Microservices Java Spring Boot has emerged as an important...
Read More
Fundamentals of Scala Programming

Mastering the Fundamentals of Scala Programming: A Complete Guide to Functional Programming

Introduction to Scala Programming Scala programming has gained immense popularity in recent years thanks to...
Read More
Java Programming

Java Basics for Beginners: A Step-by-Step Guide to Mastering Java Programming

Introduction to Java programming Java, a versatile and extensively utilised programming language, is popular among...
Read More