The best way to install Python through Windows Command Prompt will be through Chocolatey (Windows Package Manageer).

Steps to install python 3 will be as follows :-

  1. Open CMD using 'Run as Administrator'.

  2. Download and Install Chocolatey using the following command.

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  1. Download and install python using the following command.
choco install -y python3
  1. You can check the version to verify if Python was successfully installed as follows.
python --version
Answer from Cyborg on Stack Overflow
🌐
YouTube
youtube.com › watch
"Python Not Found” in CMD | Fixed (2025 Update) - YouTube
If you're getting the “Python is not recognized” error in CMD or Terminal, this video is for you. In this quick and easy 2025 fix, I’ll show you:1️⃣ How to a...
Published: April 25, 2025
Discussions

I'm trying to use Python in PowerShell - Stack Overflow
I'm trying to follow Zed Shaw's guide Learning Python the Hard Way. I need to use Python in PowerShell. I have Python 2.7.3 installed in C:\Python27. Whenever I type python into a PowerShell windo... More on stackoverflow.com
🌐 stackoverflow.com
Windows powershell starts old python
Hello together, this is what I get if I try to start my new installed python 3.11.4: PS C:\Users\XXX> python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32 Type "help",… More on learn.microsoft.com
🌐 learn.microsoft.com
3
0
July 18, 2023
Why doesn't python 3.10.0 show up on PowerShell?
Greetings, all I am excited to learn python, and have enrolled in a course to this effect. However, I started encountering problems right off the mark. I installed Python 3.10.0 from the Python homepage (it defaulted to the amd64 installer for Windows) and followed all the steps - disable the ... More on discuss.python.org
🌐 discuss.python.org
6
0
October 12, 2021
How to add python to path and how to use it in commandline/powershell?
Images are banned so you post code blocks instead of screenshots/picture of your code, I'm assuming. It's much easier to diagnose and troubleshoot from a code block than a picture. More on reddit.com
🌐 r/learnpython
17
2
October 25, 2025
🌐
Reddit
reddit.com › r/learnpython › 'python' not recognized in powershell
r/learnpython on Reddit: 'python' not recognized in Powershell
May 26, 2023 -

I have read through some previous posts with the same issue but the solutions are not working for me. Hoping someone can point to my error.

  1. Trying to delete Python reference in Windowsapps directory using windows explorer. I get an error message that does not let me delete them.

  2. In environmental variables I moved windows apps down below the python line. I still get an error message in Powershell that Python not found.

🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1332563 › windows-powershell-starts-old-python
Windows powershell starts old python - Microsoft Q&A
July 18, 2023 - You can check this in the "Default apps" settings or use the ftype command in PowerShell: PS C:\Users\XXX> ftype Python.File If it is not associated correctly, you can set it using the following command (replace C:\path\to\python3.11.4\python.exe with the actual path):
🌐
Python.org
discuss.python.org › python help
Why doesn't python 3.10.0 show up on PowerShell? - Python Help - Discussions on Python.org
October 12, 2021 - Greetings, all I am excited to learn python, and have enrolled in a course to this effect. However, I started encountering problems right off the mark. I installed Python 3.10.0 from the Python homepage (it defaulted to the amd64 installer for Windows) and followed all the steps - disable the 260 character limit, add python to path, etc.
Find elsewhere
🌐
Medium
medium.com › @viknesh2798 › how-to-fix-the-issues-while-using-python-command-in-the-command-prompt-ba56d9018c5f
[SOLVED] Windows: Python command not found in CMD and Microsoft store pops up when I type python in CMD..! | by Viknesh M R | Medium
April 30, 2022 - Firstly, Most of us might have faced this error, python command is not recognized, because the system couldn’t identify the path where the python.exe file was located.
🌐
LinkedIn
linkedin.com › pulse › python-found-run-without-arguments-install-from-microsoft-raavi-gzgie
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases
May 8, 2026 - Windows (CMD / PowerShell): venv\Scripts\activate · Mac/Linux: source venv/bin/activate · You should now see (venv) in your terminal prompt, meaning the virtual environment is active. Setting up Python correctly on Windows can sometimes be tricky, but following these steps should resolve the “Python not found” error.
🌐
RunxBuild
runxbuild.com › home › blog › "python was not found": the three-year-old windows error that will not die, and the five things it usually means
"Python Was Not Found": The Three-Year-Old Windows ...
June 12, 2026 - The honest answer is that there is no single “fix” for “Python was not found.” The honest answer is that the developer has to figure out which of the five causes is theirs, and the honest answer is that the developer can do that in 10 seconds with where python (or which python on macOS / Linux) plus a look at the App Execution Alias setting.
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › python
Python on Windows for beginners | Microsoft Learn
September 14, 2026 - 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.
🌐
UiPath Community
forum.uipath.com › news › knowledge base
Troubleshooting 'Python Not Found' Error on Command Prompt During Process Mining App Setup Using App Templates - Knowledge Base - UiPath Community Forum
January 3, 2025 - Why 'Python was not found' error message is displayed by the command prompt when attempting to execute a Python script? Issue Description: While setting up a Process Mining App using APP templates (for instance Coupa Pur…
🌐
PowerShell Forums
forums.powershell.org › powershell help
Cannot run .py files in PowerShell - PowerShell Help - PowerShell Forums
March 27, 2019 - Can someone assist me with the possible reasons why I cannot run .py files in PowerShell. I can run them in CMD fine. I thought PowerShell carried the same basic functionality as the CMD has? Below is the error I am getting? Thank you. PS C:\Users\ajoh\Desktop\Python\py4e\ex_03> Ch_03_Score_Spy.py Ch_03_Score_Spy.py : The term ‘Ch_03_Score_Spy.py’ is not recognized as the name of a cmdlet, function, script file, or operable program.
🌐
GitHub
github.com › PowerShell › PowerShell › issues › 24662
PowerShell does not show output of `where python` command · Issue #24662 · PowerShell/PowerShell
December 11, 2024 - Run command where python on PowerShell and Command Prompt. There might be more commands that does not print output to the console.
🌐
Stack Overflow
stackoverflow.com › questions › 65905209 › cant-run-python-in-powershell
can't run python in powershell - Stack Overflow
You probably do not have "python" in your PATH variable. This thread should help you : Python not working in command prompt? ... Save this answer. ... Show activity on this post. Try using the powershell command Start-Process and then it will ask you for a filepath...
🌐
Visual Studio Code
code.visualstudio.com › docs › python › environments
Python environments in VS Code
November 3, 2021 - To discover environments in custom locations, update the python-envs.workspaceSearchPaths setting: ... This setting must be configured at the workspace or folder level, not user level.
🌐
CodeWithHarry
codewithharry.com › blogpost › python-is-not-recognized-error
[Solved] The term 'python' is not recognized as the name of a cmdlet, function,..... | Blog | CodeWithHarry
The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.