Home > Development Tools > VSCode > vscode console does not output

vscode console does not output

王林
Release: 2020-02-07 14:34:42
Original
12770 people have browsed it

vscode console does not output

Problem:

When you open a python project with vscode, the python path is configured. But this creates a problem: after running/debugging, no error is reported, but the most basic print() result will not be output on the console terminal TERMINAL.

Solution:

The automatically configured python path of anaconda is pythonw.exe, just change it to python.exe.

1. Open File->Preferences->Setting and set the path.

vscode console does not output

##2. Open Edit in setting.json in User->Python and modify the configuration

vscode console does not output

3. Just change pythonw.exe to python.exe. Of course, you can also configure python.exe in other environments and save the json file

vscode console does not output

Related article tutorial recommendations:

vscode tutorial

The above is the detailed content of vscode console does not output. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template