Reputation: 71
I have the same old problem of python not being recognized and get this error in VS:
[Running] python -u "c:\Users\Keram\Desktop\WEB\index.py"
'python' is not recognized as an internal or external command,
operable program or batch file.
the solution is said to be putting the path of the python file where it is installed in the PATH of the environment.
but I had the same issue with node.js and had to put its path as the environment variable path.
now if I add python's path, I would not have node.js.
what am I supposed to ?
Upvotes: 0
Views: 3800
Reputation: 1117
You can set path for node and python both, it doesn't affect anything.
Just go to environment variables, click path, edit, and then add the path of python executable file.
Then just restart/reopen the terminal and check.
I had the issue with python where the name was python3 not the python
Renaming solved that issue too.
Hope it helps.!
Upvotes: 1