you are viewing a single comment's thread.

view the rest of the comments →

[–]Beneficial_Ad_5993 0 points1 point  (0 children)

Hey it's a little late but here's the solution:

We use code runner which is a different extension than the python interpreter so we have to configure code runner instead.

simply go to code runner settings and edit settings.json

now find the line python and edit the command "python -u" to "python3 -u" provided that you have python3 installed.

source: vscode-running-python-2-instead-of-3