简体   繁体   中英

Why do I have conda error in VS Code for running a python file?

I've been trying to get used to VS Code, and following their video tutorials.

I followed their debugging video and applied similar thing myself, however I get the following error about conda.

I don't see any print outputs on the screen, nor I can't use the input function in the code.

Is there something that I'm missing or doing wrong?

Thank you.

I couldn't find the reason, but found a solution: changing the interpreter from Anaconda to another one solved the problem for me. In order to change it:

  1. Ctrl+Shift+P for command palette
  2. Search for "Select Interpreter"
  3. Select a working interpreter

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