When I put "py --list
" in the terminal I get this:
Installed Pythons found by C:Windowspy.exe Launcher for Windows
No Installed Pythons Found!
I set my environment variables. I actually got VS Code to run some code I threw together that didn’t use any imports, but now that I’m trying to use any python commands in the terminal, I’m getting errors. What gives?
python should work, since it is finding installations.
2
Answers
If you are working on Windows, very often it’s all about permissions. Try running your terminal and VSCode as administrator! Worked a lot of times for me, also with other languages.
Please ensure that you have installed the python extension and selected the correct python interpreter (
Ctrl+Shift+P
and type Python: Select Interpreter).If this didn’t work, you may have to reinstall python.
Read the document about Vscode-Python for more details.