search
HomeBackend DevelopmentPython TutorialHow to install Python on Windows

How to install Python on Windows

Jul 16, 2024 pm 04:29 PM

How to install Python on Windows

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.

  1. Python 3.12.4 Download Windows installer (64-bit) [ .exe file gets downloaded]
  2. 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:UsersDev>
i. Type: python --version (example C:UsersDev>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:UsersDev>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!

The above is the detailed content of How to install Python on Windows. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Python's Hybrid Approach: Compilation and Interpretation CombinedPython's Hybrid Approach: Compilation and Interpretation CombinedMay 08, 2025 am 12:16 AM

Pythonusesahybridapproach,combiningcompilationtobytecodeandinterpretation.1)Codeiscompiledtoplatform-independentbytecode.2)BytecodeisinterpretedbythePythonVirtualMachine,enhancingefficiencyandportability.

Learn the Differences Between Python's 'for' and 'while' LoopsLearn the Differences Between Python's 'for' and 'while' LoopsMay 08, 2025 am 12:11 AM

ThekeydifferencesbetweenPython's"for"and"while"loopsare:1)"For"loopsareidealforiteratingoversequencesorknowniterations,while2)"while"loopsarebetterforcontinuinguntilaconditionismetwithoutpredefinediterations.Un

Python concatenate lists with duplicatesPython concatenate lists with duplicatesMay 08, 2025 am 12:09 AM

In Python, you can connect lists and manage duplicate elements through a variety of methods: 1) Use operators or extend() to retain all duplicate elements; 2) Convert to sets and then return to lists to remove all duplicate elements, but the original order will be lost; 3) Use loops or list comprehensions to combine sets to remove duplicate elements and maintain the original order.

Python List Concatenation Performance: Speed ComparisonPython List Concatenation Performance: Speed ComparisonMay 08, 2025 am 12:09 AM

ThefastestmethodforlistconcatenationinPythondependsonlistsize:1)Forsmalllists,the operatorisefficient.2)Forlargerlists,list.extend()orlistcomprehensionisfaster,withextend()beingmorememory-efficientbymodifyinglistsin-place.

How do you insert elements into a Python list?How do you insert elements into a Python list?May 08, 2025 am 12:07 AM

ToinsertelementsintoaPythonlist,useappend()toaddtotheend,insert()foraspecificposition,andextend()formultipleelements.1)Useappend()foraddingsingleitemstotheend.2)Useinsert()toaddataspecificindex,thoughit'sslowerforlargelists.3)Useextend()toaddmultiple

Are Python lists dynamic arrays or linked lists under the hood?Are Python lists dynamic arrays or linked lists under the hood?May 07, 2025 am 12:16 AM

Pythonlistsareimplementedasdynamicarrays,notlinkedlists.1)Theyarestoredincontiguousmemoryblocks,whichmayrequirereallocationwhenappendingitems,impactingperformance.2)Linkedlistswouldofferefficientinsertions/deletionsbutslowerindexedaccess,leadingPytho

How do you remove elements from a Python list?How do you remove elements from a Python list?May 07, 2025 am 12:15 AM

Pythonoffersfourmainmethodstoremoveelementsfromalist:1)remove(value)removesthefirstoccurrenceofavalue,2)pop(index)removesandreturnsanelementataspecifiedindex,3)delstatementremoveselementsbyindexorslice,and4)clear()removesallitemsfromthelist.Eachmetho

What should you check if you get a 'Permission denied' error when trying to run a script?What should you check if you get a 'Permission denied' error when trying to run a script?May 07, 2025 am 12:12 AM

Toresolvea"Permissiondenied"errorwhenrunningascript,followthesesteps:1)Checkandadjustthescript'spermissionsusingchmod xmyscript.shtomakeitexecutable.2)Ensurethescriptislocatedinadirectorywhereyouhavewritepermissions,suchasyourhomedirectory.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor