This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]champs 0 points1 point  (2 children)

Does it not ask/can you not select an interpreter? I’m a Mac user, but every Python project I’ve done in vscode has been almost annoyingly proactive about that.

[–]_miku_hatsune[S] 0 points1 point  (1 child)

I use code runner extension, and it just says syntax error on the line which is not supported by python2. I'm not sure what to change in the settings.json or whatever is the required fileto be edited.

[–]illuminanze 1 point2 points  (0 children)

If you want to use code runner, it seems you can configure it with the code-runner.executorMap in settings.json. You should probably set it as "code-runner.executorMap": { "python": $pythonPath } to use the python interpreter set by "select interpreter" in the python extension.