How to Install Python on Windows 10 | Built In (2024)

Python has emerged as one of the most popular and widely used languages across the globe. Popular for its simplicity and readability, Python finds application in a multitude of areas, ranging from desktop applications to web development to artificial intelligence. If you want to start writing in Python, you’ll need to download it.

4 Steps to Install Python on Windows 10

  1. Go to Python’s website and download the latest version of Python.
  2. Select “Windows installer” and click download.
  3. Follow the on-screen instructions.
  4. Verify the installation by opening a command prompt and typing: python -V.

In this article, I’ll share a few ways you can install Python on your Windows PC.

Python Installation Prerequisites

  • A PC with Windows 10.
  • An internet connection.

More on PythonPip Command Not Found on Windows: A Guide

How to Install Python on Windows With Python Installer

First, go to the Python website and click on the “Download Python” button. Select the latest version. As of this writing, that would be Python 3.11.4.

How to Install Python on Windows 10 | Built In (1)

Select the “Windows installer” option and click on the “Download” button. Once the download is complete, run the installer.

How to Install Python on Windows 10 | Built In (2)

During the process, it’s advisable to check the boxes “Use admin privileges when installing py.exe” and “Add python.exe to PATH” to save the trouble of manual adjustments in the environment variable later.

Then, follow the on-screen instructions to install Python. Once the installation is complete, you should see a success message like this:

How to Install Python on Windows 10 | Built In (3)

You can verify that Python has been installed by opening a command prompt and typing the following command:python -V.

How to Install Python on Windows 10 | Built In (4)

This will display the Python version currently installed.

The advantage of installing Python via an installer file is that it is easy to use but requires a few more clicks than installing Python via the command-line interface (CLI).

How to Install Python on Windows Via CLI

Windows doesn’t have a built-in package manager like some other operating systems, but you can use a third-party package manager like Chocolatey.

First, go to the Chocolatey website and follow the installation instructions. You have to run the following command in an elevated PowerShell.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
How to Install Python on Windows 10 | Built In (5)

Open a command prompt as an administrator and run the following command to install Python:

choco install python

If the installation is successful, you should see the following message:

How to Install Python on Windows 10 | Built In (6)

Once the installation is complete, you can check the Python version by running python --version in the command prompt.

How to Install Python on Windows 10 | Built In (7)

Installing via the CLI is a more direct and efficient way to install Python, and it allows you to install the latest version. However, itcan be more difficult than using a Python installer, especially for beginners.

How to Install Python Using Windows Subsystem for Linux

This method allows you to run a Linux distribution alongside your existing Windows installation. You’ll need to first install Windows Subsystem for Linux.

To start installing Python, open an elevated PowerShell and run this command:

wsl — install
How to Install Python on Windows 10 | Built In (8)

Follow the on-screen instructions and restart your computer if prompted.Then, open WSL on the CLI again and install Python by running this command:

sudo apt install python3
How to Install Python on Windows 10 | Built In (9)

To verify the installation, run the command python3 --versionin the command prompt.

More on PythonPython: 5 Ways to List Files in Directory

How to Uninstall Python

Uninstalling is pretty simple; just open the “Programs and Features” window, right-click on the Python installed, and select “Uninstall”.

How to Install Python on Windows 10 | Built In (10)

Alternatively, you can also uninstall Python from the CLI by running the following command:

choco uninstall python
How to Install Python on Windows 10 | Built In (11)

Regardless of the method you used to uninstall, you may want to check the following to ensure Python is completely removed:

Ensure any Python references are removed from the system PATH variable. This can be edited through “System Properties → Advanced → Environment Variables.”

You might also want to manually delete any leftover Python directories from your system, particularly in places like C:\Program Files\ or C:\Users\[YourUsername]\AppData\Local\.

At this point, you should have a Python 3 programming environment set up on your local Windows machine and can begin coding your projects.

How to Install Python on Windows 10 | Built In (2024)

FAQs

How do I install Python on Windows 10 step by step? ›

How to Install Python on Windows
  1. Step 1: Select Python Version.
  2. Step 2: Download Python Executable Installer.
  3. Step 3: Run Executable Installer.
  4. Step 4: Add Python to Path (Optional)
  5. Step 5: Verify Python Was Installed on Windows.
  6. Step 6: Verify PIP Was Installed.
  7. Step 7: Install virtualenv (Optional)
Dec 5, 2023

How to install Python on Windows HowToGeek? ›

Key Takeaways

To install Python on Windows, download the latest version of Python from the Python website, then run the installer. Ensure that you add Python to the PATH when presented with the option.

How do I install Python answer? ›

How to install Python on Windows? – FAQs
  1. Download the Installer: Visit the official Python website: python.org. ...
  2. Run the Installer: Locate the downloaded installer file ( python-3.x.x.exe ) and run it.
  3. Select Installation Options: ...
  4. Customize Installation (Optional): ...
  5. Complete the Installation:
Jul 25, 2024

How to install Python for the first time? ›

Follow these steps to install Python on your computer:
  1. Step 1: Check Your System. ...
  2. Step 2: Download Python. ...
  3. Step 3: Choose the Right Version. ...
  4. Step 4: Download the Installer. ...
  5. Step 5: Run the Installer. ...
  6. Step 6: Verify the Installation. ...
  7. Step 7: Install a Code Editor (Optional) ...
  8. Step 8: Write Your First Python Code.
Nov 7, 2023

How do I download and install Python 3.10 on Windows 10? ›

Step 1 — Downloading the Python Installer
  1. Go to the official Python download page for Windows.
  2. Find a stable Python 3 release. This tutorial was tested with Python version 3.10. ...
  3. Click the appropriate link for your system to download the executable file: Windows installer (64-bit) or Windows installer (32-bit).
Apr 15, 2024

Is it safe to install Python on Windows? ›

The Microsoft Store package is a simple installation of Python that is suitable for running scripts and packages, and using IDLE or other development environments. It requires Windows 10 and above, but can be safely installed without corrupting other programs.

Why Python is not installing in Windows? ›

Windows installers for Python do not add Python, or Pip, to the PATH by default; you have to tell them to do so when you run the installer, by checking that box (or you can fix PATH yourself afterwards, or try “repairing” the installation from the Add/Remove Programs interface).

How to check if Python is installed on Windows? ›

To check if Python is installed on your Windows machine using the Start Menu, follow these steps: Press the Windows key or click on the Start button to open the Start Menu. Type "python". If Python is installed, it should show up as the best match.

Where should I install Python on Windows? ›

By default, the Python installer for Windows places its executables in the user's AppData directory, so that it doesn't require administrative permissions. If you're the only user on the system, you might want to place Python in a higher-level directory (e.g. C:\Python312 ) to make it easier to find.

How to run a Python program in Windows 10? ›

Navigate to the Script's Directory: Use the cd command to navigate to the directory where your Python script is located. Run the Script: Enter python scriptname.py, where scriptname.py is the name of your Python script. This command will execute your script.

How to install Python ideally? ›

Installing Python on Windows takes a series of few easy steps.
  1. Step 1 − Select Version of Python to Install. ...
  2. Step 2 − Download Python Executable Installer. ...
  3. Step 3 − Run Executable Installer. ...
  4. Step 4 − Verify Python is installed on Windows. ...
  5. Step 5 − Verify Pip was installed.
Feb 26, 2024

How to install Python 3.11 on Windows 10? ›

Installing Python via the Microsoft Store
  1. Click on Start and search for "store". (Image credit: Future)
  2. Search for Python in the Microsoft Store. (Image credit: Future)
  3. Select the latest version of Python. In this case Python 3.11. ...
  4. Click "Get" to download and install Python to your computer.
Jun 19, 2023

How to start Python step by step? ›

  1. How to Learn Python: 6 Steps for Success.
  2. Understand why you're learning Python.
  3. Get started with the Python basics.
  4. Write your first Python program.
  5. Master intermediate Python concepts.
  6. Learn by doing.
  7. Build a portfolio of projects.
  8. Keep challenging yourself.

What is the Python command to put my first Python program? ›

Run Your First Python Program
  1. Open up Terminal if you are in Mac OS or Command Prompt if you are in Windows. ...
  2. Type in python , and you should see information about Python come up with a >>> ...
  3. Next, type in print("hello, world!") and press enter; see what it returns.

Where should Python be installed on Windows? ›

Python installs on Windows in much the same way as any other application, by way of an installer that guides you through the setup process. By default, the Python installer for Windows places its executables in the user's AppData directory, so that it doesn't require administrative permissions.

How to install easy install Python Windows? ›

Breadcrumb
  1. download and install python 2.7.x from https://www.python.org/downloads/
  2. install python in the default directory c:\Python27.
  3. download the ez_setup.py script from https://pypi.python.org/pypi/setuptools (save this file in c:\Python27 )
  4. open up a command prompt.
  5. type cd %PYTHON_PATH%

Top Articles
What Happens When You Freeze Your Card?
Rebuilding the American Dream: Policy Approaches to Increasing Housing Supply in the U.S.
Kem Minnick Playboy
My Arkansas Copa
13 Easy Ways to Get Level 99 in Every Skill on RuneScape (F2P)
Activities and Experiments to Explore Photosynthesis in the Classroom - Project Learning Tree
Lexington Herald-Leader from Lexington, Kentucky
Academic Integrity
Delectable Birthday Dyes
Irving Hac
William Spencer Funeral Home Portland Indiana
Evangeline Downs Racetrack Entries
Things To Do In Atlanta Tomorrow Night
Alaska: Lockruf der Wildnis
iLuv Aud Click: Tragbarer Wi-Fi-Lautsprecher für Amazons Alexa - Portable Echo Alternative
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
Dark Chocolate Cherry Vegan Cinnamon Rolls
Zoe Mintz Adam Duritz
Earl David Worden Military Service
What Is Vioc On Credit Card Statement
Outlet For The Thames Crossword
Allybearloves
Shiftselect Carolinas
Www Craigslist Madison Wi
Rapv Springfield Ma
Sandals Travel Agent Login
Urban Dictionary Fov
Truvy Back Office Login
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Ihs Hockey Systems
Ezstub Cross Country
DIY Building Plans for a Picnic Table
Shiftwizard Login Johnston
Great Clips On Alameda
Tamilyogi Ponniyin Selvan
Rocketpult Infinite Fuel
Hisense Ht5021Kp Manual
دانلود سریال خاندان اژدها دیجی موویز
How To Get Soul Reaper Knife In Critical Legends
Eastern New Mexico News Obituaries
Questions answered? Ducks say so in rivalry rout
ESA Science & Technology - The remarkable Red Rectangle: A stairway to heaven? [heic0408]
War Room Pandemic Rumble
Unit 11 Homework 3 Area Of Composite Figures
Graduation Requirements
antelope valley for sale "lancaster ca" - craigslist
The Significance Of The Haitian Revolution Was That It Weegy
683 Job Calls
Electronics coupons, offers & promotions | The Los Angeles Times
Dumb Money Showtimes Near Regal Stonecrest At Piper Glen
One Facing Life Maybe Crossword
Syrie Funeral Home Obituary
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 6500

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.