sublime text 3 use python 3.3 as compiler

余生颓废 提交于 2020-01-02 09:52:45

问题


Just purchased sublime 3. I'm wondering how I can compile in python 3 and not in python 2.

When I execute

import sys print(sys.version)

I receive "2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)]"

I've been stuck for the last 2 or 3 hours. I know it has something to do with builds but it just doesn't seem to be clicking.

Any help would be greatly appreciated. Thanks!


回答1:


The Sublime Text Python builder uses the Python executable found in your PATH.

Instructions for Windows could be found here: http://pythoncentral.org/how-to-install-python-2-7-on-windows-7-python-is-not-recognized-as-an-internal-or-external-command/



来源:https://stackoverflow.com/questions/16287158/sublime-text-3-use-python-3-3-as-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!