try opening up cmd and simply:

where python

By default, this searches your PATH for matches. More precisely:

Description: Displays the location of files that match the search pattern. By default, the search is done along the current directory and in the paths specified by the PATH environment variable.

Most windows python installers modify your PATH so this should find what doing python at the CLI will call.

Answer from roippi on Stack Overflow
๐ŸŒ
CodeWithHarry
codewithharry.com โ€บ blogpost โ€บ how-to-find-python-installation-path
How to find the Python Installation Path on Windows? | Blog | CodeWithHarry
This classic method involves utilizing Windows' Command Prompt to find where Python is installed. Press Win + R to open the run window, type cmd, and press Enter. In the Command Prompt window, type the following command: ... Press Enter, and the system will display the paths where Python is ...
Discussions

Quick Question: How do I view Python's location in command prompt?
Either via the command where from a cmd shell: where python Or via sys.executable from a Python shell: import sys sys.executable More on reddit.com
๐ŸŒ r/learnpython
4
1
November 11, 2021
Python Installation
Hello, I recently got python downloaded in my system. able to open all terminals, Idle windows able to access Pycharm. but really not sure where is the exact location of Python installed when i try to check from Command prompt. I wanted to add Environmental Variables. Please help. More on discuss.python.org
๐ŸŒ discuss.python.org
0
0
December 7, 2023
Python not found by command prompt
I have installed Python in Windows 11 and saved a small script called unicode.replacer.py In the command prompt, in the correct directory, when I attempt to execute: python unicode.replacer.py command prompt reports: Python was not found. Any suggestions welcome. More on discuss.python.org
๐ŸŒ discuss.python.org
0
0
February 11, 2024
Python and the PATH variable in Windows 10
If you type python and the store opens, Turn off the python alias in the Alias List in settings ( https://www.tenforums.com/tutorials/102096-manage-app-execution-aliases-windows-10-a.html ) More on reddit.com
๐ŸŒ r/Python
16
33
August 20, 2021
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ using โ€บ windows.html
4. Using Python on Windows โ€” Python 3.14.3 documentation
System-wide installations of Python 3.3 and later will put the launcher on your PATH. The launcher is compatible with all available versions of Python, so it does not matter which version is installed. To check that the launcher is available, execute the following command in Command Prompt: ... You should find that the latest version of Python you have installed is started - it can be exited as normal, and any additional command-line arguments specified will be sent directly to Python.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ quick question: how do i view python's location in command prompt?
r/learnpython on Reddit: Quick Question: How do I view Python's location in command prompt?
November 11, 2021 -

So I've been having trouble with Python and I want to know which installation I'm using (I have two user profiles on Windows, my old one and the one I made explicitly to code in, and they both have Python installed).

I tried looking it up, but it only led to this madness you see below:

    Microsoft Windows [Version 10.0.19043.1348]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\willi>!type python
    '!type' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\willi>type python
    The system cannot find the file specified.

    C:\Users\willi>type Python
    The system cannot find the file specified.

    C:\Users\willi>Python type
    Python: can't open file 'C:\Users\willi\type': [Errno 2] No such file or     directory

    C:\Users\willi>Python
    Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit     (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> python
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'python' is not defined
    >>> .quit
      File "<stdin>", line 1
        .quit
        ^
    SyntaxError: invalid syntax
    >>> quit
    Use quit() or Ctrl-Z plus Return to exit
    >>> quit()
    
    C:\Users\willi>python
    Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit     (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> !type Python
      File "<stdin>", line 1
        !type Python
        ^
    SyntaxError: invalid syntax
    >>> type
    <class 'type'>
    >>> type python
      File "<stdin>", line 1
        type python
         ^
    SyntaxError: invalid syntax
    >>> type Python
      File "<stdin>", line 1
        type Python
         ^
    SyntaxError: invalid syntax
    >>> type(Python)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'Python' is not defined
    >>>

How do I view Python's location in command prompt?

๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Python Installation - Python Help - Discussions on Python.org
December 7, 2023 - Hello, I recently got python downloaded in my system. able to open all terminals, Idle windows able to access Pycharm. but really not sure where is the exact location of Python installed when i try to check from Commandโ€ฆ
๐ŸŒ
AskPython
askpython.com โ€บ home โ€บ determining the install path of python from the command line
Determining the Install Path of Python from the Command Line - AskPython
June 30, 2023 - In windows, go to your search bar, and write cmd or command prompt in it. Or, press windows key + R, and open โ€œcmdโ€. ... Now weโ€™ll run the following command in our command prompt to find the location of Python in our computer.
Find elsewhere
๐ŸŒ
Enterprise DNA
blog.enterprisedna.co โ€บ where-is-python-installed
Where is Python Installed? A Quick Guide โ€“ Master Data Skills + AI
The common installation paths for ... To find the exact location of your Python installation on Windows, you can use the command prompt by typing where python and press Enter....
๐ŸŒ
Real Python
realpython.com โ€บ add-python-to-path
How to Add Python to PATH โ€“ Real Python
January 30, 2023 - If the executable were in AppData\, then the path would typically look something like this: ... In your case, the <USER> part would be replaced by your currently logged-in user name. Once youโ€™ve found the executable, make sure it works by double-clicking it and verifying that it starts up a Python REPL in a new window. If youโ€™re struggling to find the right executable, you can use Windows Explorerโ€™s search feature.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-find-the-full-path-of-the-python-interpreter
How to find the full path of the Python interpreter? - GeeksforGeeks
May 28, 2024 - On Windows, you can use PowerShell to find the path of the Python interpreter using the Get-Command cmdlet.
๐ŸŒ
W3docs
w3docs.com โ€บ python
How can I find where Python is installed on Windows?
In the "System Variables" section, scroll down and find the "Path" variable. Click on the "Edit" button. This will open the "Edit environment variable" window. Click on the "New" button and enter the path to the Python installation.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Python not found by command prompt - Python Help - Discussions on Python.org
February 11, 2024 - I have installed Python in Windows 11 and saved a small script called unicode.replacer.py In the command prompt, in the correct directory, when I attempt to execute: python unicode.replacer.py command prompt reports: โ€ฆ
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Find Python Installation Location in Windows (3 Easy Methods) ๐Ÿ - YouTube
In this video, you will learn simple and easy methods to find the Python installation path on a Windows system. Knowing the Python location is useful when se...
Published ย  1 week ago
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ python and the path variable in windows 10
r/Python on Reddit: Python and the PATH variable in Windows 10
August 20, 2021 -

Do you remember checking the box in the image shown below to add your Python installation to PATH in Windows 10?

Adding Python to PATH

Well, I was curious! What if someone accidentally forgot to check that little radio button? What would be the possible recovery steps?

So I spent my evening yesterday uninstalling Python and re-installing to figure out a way to add Python to the PATH post-installation.

If you forget to add Python to the PATH variable, you won't be able to run Python in your command line.

You will get a message saying,

โ€˜python' is not recognized as an internal or external command.

Here are the steps I used to add Python to the PATH variable in Windows 10.

  1. Copy the directory to which Python is being installed.

  2. Search for System Properties in the Search Bar.

  3. Click on the "Environment Variables" button in System Properties.

  4. Click on the "Path" variable and then click on "Edit".

  5. Now here's the deal. Paste the directory path from Step 1 at the top of the list. You can use the "Move up" button to get it to the top. Now click on "Ok".

I found out that if you paste the path at the end, it still doesn't work. Can someone tell me why?

Anyways, if the steps are not clear to anyone, here is a visual guide containing images of every step, on my blog for achieving the above objective. If you are interested, do take a look.

๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-add-python-to-windows-path
How to add Python to Windows PATH? - GeeksforGeeks
July 12, 2025 - That's it, DONE! 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.
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ windows โ€บ python โ€บ faqs
Python on Windows for beginners | Microsoft Learn
To set this variable from PowerShell, use: $env:PYTHONPATH='list;of;paths' just before you launch Python. Setting this variable globally through the Environment Variables settings is not recommended, as it may be used by any version of Python instead of the one that you intend to use. Where can I find help with packaging and deployment?
๐ŸŒ
Data to Fish
datatofish.com โ€บ add-python-to-windows-path
How to Add Python to Windows PATH
You should then see the New User Variable box. Type Path in the Variable name field. For the Variable value you will need to know the path to the Python that is installed on your computer. To find the path, search python, right click on the relevant search result and click Open file location: