Coderunner uses old 2.71 version of Python instead of 3.2 on OSX 10.7.5

For the latest vscode you need to go to settings (shift+command+p) and override python interpreter value.

vscode settings


in new versions in setting.json file just add:

"code-runner.

*note that (")

it predicts its continue or you can press ctrl+space and select "code-runner. "code-runner.executorMap" it show all of run commands easyly change

"python": "python -u",

to

"python": "python3 -u",

to change your intellisense for error handling in python3: then press ctrl+shift+P select python:select interpreter and select python 3.x.x


Try changing Python's "run command" in the preferences to:

python3 $filename;