How to install Python on Windows
Tags: python, installation
Published: 2024-07-09 07:11:29

Dear Readers,

This is my first blog about how to install python on Windows. Please find the below details for the same.

System Requirements check:

Go to Settings-->About

Example
OS: Windows 10 Pro
System Type: 64-bit operating system (Choose accordingly while downloading)

## 
****Installing Python on Windows 10 Guide:****

1. Search on Browser: python install on windows
2. Select website: https://www.python.org/downloads/
3. Go to Downloads Section: 
Choose Windows OS

Always download Stable release eg: " Python 3.12.4 - June 6, 2024 "
      This Python 3.13.0b3 "b" indicates its beta version means its still in testing.

4. Python 3.12.4 Download Windows installer (64-bit) [ .exe file gets downloaded]
5. Then double click .exe file to install python

****Shows 2 options:

i. Install Now

ii. Customize installation

****Check boxes with 2 option below: (You can tick this check boxes)

i. Use admin privileges when installing py.exe
ii. Admin python.exe to PATH

****Then Choose Customize installation and all checkboxes can be selected. (as per your requirement)
Click Next
**** Shows Advanced Options
i. Install Python 3.12 for all users
ii. Associate file with Python (requires the 'py" launcher)
iii. Create shortcuts for installed applications
iv. Precompile standard library
v. Download debugging symbols
vi. Download debug binaries(requires VS 2017 or later)

**Check box can be selected from i to v

**Customize install location
By default it shows C.// drive (Keep as it is)
****Then it asks for Do you want to install on your device Click Yes. Shows Setup Progress
6.After successful installation it shows "Setup was successful".    
  Then click Close.

**To verify python installed on machine or not:**
Go to cmd / Command Prompt on your device

Once opened it shows as eg: C:\Users\Dev>
i. Type:   python --version (example  C:\Users\Dev>python --version)
ii. Shows output as below:
Python 3.12.4
If the above current version you installed shows its successfully installed.
To check for py shell
i. Type py (example  C:\Users\Dev>py)
ii. Shows as below:
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun  6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
iii. Then type what you need, example:
>>> print("My first blog about python installation on windows....")
My first blog about python installation on windows.... 

******To check IDLE: Search on your device idle**

(IDLE is Python's Integrated Development and Learning Environment, its free open source from python itself)
Shows IDLE (Python 3.12.4 APP) Open it new window gets opened as IDLE Shell 3.12.4

As below:
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun  6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

Here also you can type and check:

print("My first blog about python installation on windows....")
It shows as output below: 
My first blog about python installation on windows....

You can also save your file: 

File-->Save As and save with file name eg: demo. Automatically it gets saved as demo.py

You can open the file Notepad/Notepad++ editor to check it.

Thank you!