vscode-docs icon indicating copy to clipboard operation
vscode-docs copied to clipboard

python : 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.

Open kk348 opened this issue 6 years ago • 5 comments

Hi All,i have python 3.7.4(python.org) and latest version of VS Code, I'm using Windows 10 and Python is recognized in Command prompt and but In VS Code I get the above mentioned error...

kk348 avatar Jan 13 '20 09:01 kk348

Hi @kk348 Does 'py', the python launcher, work from VS Code? I think with the default Windows python installation from python.org, you only get the py launcher installed in a global location (C:\Windows\py.exe). You could also try restarting VS Code from your command prompt (code .).

gregvanl avatar Jan 13 '20 20:01 gregvanl

Hi @gregvanl thanks for ur response ...i restarted VS code but issue did not resolve,after restart what else should i do i.e any path setting etc?....Moreover yes you are right python launcher is installed in global location

kk348 avatar Jan 14 '20 10:01 kk348

Hi need any help here

YassinElZouhery avatar Jan 14 '20 15:01 YassinElZouhery

Hi @kk348 / @YassinElZouhery - Have you selected a python interpreter via the Command Palette? You would see the selected interpreter in the lower left hand corner (ie. Python 3.7.3, etc). Assuming you have, are you seeing the same response when you try to run using the methods discussed here?

JoshuaPartlow avatar Feb 19 '20 22:02 JoshuaPartlow

Closing given no recent reply. If you still have problems though, please feel free to re-open.

JoshuaPartlow avatar Feb 26 '20 19:02 JoshuaPartlow