How to add Python to Windows PATH? - GeeksforGeeks (2024)

Last Updated : 07 Dec, 2023

Summarize

Comments

Improve

Pythonis a great language! However, it doesn’t come pre-installed with Windows. Hence we download it to interpret thePythoncode that we write. But wait, windows don’t know where you have installed the Python so when trying to any Python code, you will get an error. We will be using Windows 10 and python3 for this article. (Most of the part is the same for any other version of either Windows or Python)

Add Python to Windows Path

Below are the ways by which we can add Python to the Windows path:

Step 1: Locate Python Installation

First, we need to locate where the Python is being installed after downloading it. Press the WINDOWS key and search for “Python”, you will get something like this.

How to add Python to Windows PATH? - GeeksforGeeks (1)

Step 2: Verify Python Installation

If no results appear then Python is not installed on your machine, download it before proceeding further. Click on open file location and you will be in a location where Python is installed, Copy the location path from the top by clicking over it.

How to add Python to Windows PATH? - GeeksforGeeks (2)

Step 3: Add Python to Path as an Environmental Variable

Now, we have to add the above-copied path as a variable so that windows can recognize. Search for “Environmental Variables”, you will see something like this:

How to add Python to Windows PATH? - GeeksforGeeks (3)

Click on that

How to add Python to Windows PATH? - GeeksforGeeks (4)

Now click the “Environmental Variables” button

How to add Python to Windows PATH? - GeeksforGeeks (5)

Step 4: Add Python Path to User Environmental Variables

There will be two categories namely “User” and “System”, we have to add it in Users, click on New button in the User section. Now, add a Variable Name and Path which we copied previously and click OK. That’s it, DONE!

How to add Python to Windows PATH? - GeeksforGeeks (6)

Step 5: Check if the Environment variable is set or not

Now, after adding the Python to the Environment variable, let’s check if the Python is running anywhere in the windows or not. To do this open CMD and type Python. If the environment variable is set then the Python command will run otherwise not.

How to add Python to Windows PATH? - GeeksforGeeks (7)

Related ArticleDownload PyCham IDE



Please Login to comment...

How to add Python to Windows PATH? - GeeksforGeeks (2024)
Top Articles
Changing Bad Spending Habits | HRCCU
Top Skills for Loan Officers in 2024 (+Most Underrated Skills)
Best Pizza Novato
Www Thechristhospital Billpay
Decaying Brackenhide Blanket
Lesson 3 Homework Practice Measures Of Variation Answer Key
Snowflake Activity Congruent Triangles Answers
Mens Standard 7 Inch Printed Chappy Swim Trunks, Sardines Peachy
Red Tomatoes Farmers Market Menu
Sand Castle Parents Guide
Cvs Appointment For Booster Shot
Hilo Hi Craigslist
London Ups Store
Napa Autocare Locator
Ally Joann
Nordstrom Rack Glendale Photos
Persona 5 Royal Fusion Calculator (Fusion list with guide)
Pjs Obits
BMW K1600GT (2017-on) Review | Speed, Specs & Prices
Puretalkusa.com/Amac
Menus - Sea Level Oyster Bar - NBPT
LCS Saturday: Both Phillies and Astros one game from World Series
Dewalt vs Milwaukee: Comparing Top Power Tool Brands - EXTOL
Red8 Data Entry Job
Understanding Gestalt Principles: Definition and Examples
Ihub Fnma Message Board
Craigslist Hunting Land For Lease In Ga
Skidware Project Mugetsu
CohhCarnage - Twitch Streamer Profile & Bio - TopTwitchStreamers
Srjc.book Store
Insidious 5 Showtimes Near Cinemark Southland Center And Xd
Ilabs Ucsf
M3Gan Showtimes Near Cinemark North Hills And Xd
1-800-308-1977
Domino's Delivery Pizza
Bay Focus
Spectrum Outage in Genoa City, Wisconsin
888-333-4026
Home Auctions - Real Estate Auctions
Payrollservers.us Webclock
Valls family wants to build a hotel near Versailles Restaurant
Oklahoma City Farm & Garden Craigslist
Ucla Basketball Bruinzone
Boyfriends Extra Chapter 6
A jovem que batizou lei após ser sequestrada por 'amigo virtual'
Arginina - co to jest, właściwości, zastosowanie oraz przeciwwskazania
10 Best Tips To Implement Successful App Store Optimization in 2024
SF bay area cars & trucks "chevrolet 50" - craigslist
Morbid Ash And Annie Drew
Hampton Inn Corbin Ky Bed Bugs
Spongebob Meme Pic
Https://Eaxcis.allstate.com
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5534

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.