8
votes

python3 : The term 'python3' 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.

3
Welcome to Stack Overflow! To give you a great answer, it might help us if you have a glance at How to Ask if you haven't already. It might be also useful if you could provide a minimal reproducible example.Mat
Please don't post code as image but as text. This is easier to read, to find and to copy.Klaus Gütter
Also, what's the actual question?Mad Physicist

3 Answers

9
votes

Make sure you add python to your system path

And try using python not python3

And try to run your code in native command line of windows

2
votes

commands with python3 works for macOS/Linux. Use python for windows OS.

I ran into the same problem while creating a virtual environment for my project. Following instructions are quoted from https://code.visualstudio.com/docs/python/tutorial-django

macOS/Linux

sudo apt-get install python3-venv # If needed

python3 -m venv env

Windows

python -m venv env

1
votes

Assuming you installed the Python launcher when you installed Python, even without python3 in your PATH, you should be able to launch Python with py -2 (to use the most recent installed Python 2 version) or py -3 (to use the most recent installed Python 3 version), thanks to PEP 397: Python launcher for Windows.