python is not recognized as an internal or external command.
- I had installed python
3.10.1but when I try to execute
command promptI am getting the below error.
To resolve the problem first get the
pathof python by executing the below command in
py -c "import os, sys; print(os.path.dirname(sys.executable))"
Below is my path after executing the command
- Now added the path in environment variable by creating a
newvariable as below.
- Now after restarting the
PCtry executing the
pythoncommand as below.