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

DGDD picture DGDD · Nov 5, 2013 · Viewed 9.2k times · Source

I am trying to use the newer version of Python but when I type:

    import sys
    print sys.version_info

I get back:

    sys.version_info(major=2, minor=7, micro=1, releaselevel='final', serial=0)

In the terminal when I type python I get:

Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin

When I type python3 I get:

Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

As you see, I have installed Python 3.3 but no matter what I do I can't seem to actually use it in CodeRunner.

Answer

Ardhi picture Ardhi · May 26, 2018

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

vscode settings