简体   繁体   中英

How Do I Fix The Error Below to Run Simple Python Programs? Error In VSCode Terminal

I am getting the error code below in Visual Studio Code Terminal when I try to run a simple "Hello World" python program. I previously had installed Anaconda and would like to continue now without it. I did a Windows Reset (with cloud installation) but I'm still getting this message. Visual Studio Code is finding the Python interpreter.


&: The term 'C:\Users\Administrator\anaconda3\Scripts\conda.exe' 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.

VS Code cannot find your conda, since it is not in your PATH. You might add it to your PATH (by reinstalling or adding it in Windows settings) - or:

Check if you can change your Python interpreter to something VSCode can find (Ctrl + Shift + P, start typing "Python Select Interpreter" until you can choose it from the menu).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM