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

后端 未结 6 2072

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

    import sys
    print sys.version_info

I get back:

    s         


        
6条回答
  •  醉话见心
    2021-01-05 09:49

    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

提交回复
热议问题