If you are unable to find Python being installed on your Windows (10/11) operating system and wondering how to locate the folder, well there are a few things that you can try.
Option 1: Make use of the where command
If you make use of the Command Prompt or PowerShell you can try to make use of the where command.
The where command can be used to display the location of files that match the given search pattern.
Example:C:/> where python
C:/> C:\Users\Code2care\AppData\Local\Programs\Python\Python39-32\python-exe
Option 2: Using the which command
If you make use of bash or git bash on Windows, you can try the which command.
# man witch
which – locate a program file in the user's path
Example:
which python
Oprion 3: Using Python code
This may sound funny, but you can write your own Python script or execute code snippets to find out the location of your Python installation on your Windows device using the os module.
Example:>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\Users\Code2care\AppData\Local\Programs\Python\Python39-32\python-exe'
Option 4: Check the Environment Variables
Python is often added to the system's PATH environment variable during installation. You can check if the Python installation directory is listed in the PATH variable by following these steps,
- Go to Start menu and search for "Environment Variables"
- Click on "Edit the system environment variables" option.
- In System Properties -> "Environment Variables" button.
- Look for Path under "System variables"
- Click edit and check if the Python installation directory is included.
Option 6: Search Manually
Most commonly Python setup is installed under C: drive "Program Files" or "Program Files (x86)" based on 32/64 bit versions. You can try to go to this location and try to find out.
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- Fix Windows Update Error Code: 0x80070643
- How to Create Awesome Quizzes using Windows 365 Forms
- [Fix] Microsoft Windows Store error 0x00000005 (Windows 8/10/11)
- Windows 365: Restore Deleted Distribution Group using Admin Center (Active Directory)
- How to Change Encoding of File from ANSI to UTF-8 in Windows Notepad
- How to Change the Default Shell in Windows Terminal App
- How to Create a Website (Webpage) using HTML on Windows Notepad
- How to Find the Location of Notepad on Windows 11
- How to locate Python Installation on Windows (10/11)
- Top 5 Fonts for Windows Notepad
- Fix: Windows Update Error Code: 0x800f0922
- Office.com downloading zero byte file name prelanding on Safari browser
- How to Search in Notepad Application on Windows
- Cannot access Windows application shortcuts on Start menu and Taskbar
- How to add Solver Add-in in Microsoft Excel on Mac
- How to Freeze Top Row in Excel for Mac
- [Fix] Microsoft Windows OneDrive 0x8007018b Error Code
- Mac: Sign in Required We cant upload or download your changes because your cached credentials have expired [Word Excel]
- Grep Alternative for Windows CMD or PowerShell: findstr
- Fix: Failed in attempting to update the source: winget
- How to lock cells in Microsoft Excel for Mac
- Enable Cloud Based Clipboard for Images and Text on Windows 10/11
- How to update Microsoft Excel on Mac
- How to Make a Windows Notepad File Read-Only
- sudo is not recognized as an internal or external command
- How to install Classic Notepad App on Windows 11 - Windows-11
- Linux Remove or Delete Files and Directories using Terminal Commands - Linux
- How to Sort a List in Java by Date - Java
- How to Install Windows Subsystem for Linux (WSL) on Windows 11 (22H2) - Windows-11
- Steps of working with Stored Procedures using JDBCTemplate Spring Boot - Java
- SharePoint PowerShell PnP - How to get list item by Item ID using GetItemById, Get-PnPListItem - SharePoint
- Android Studio : Implement abstract methods shortcut - Android-Studio
- Change Sublime Text 3 white background color theme - Sublime-Text