【发布时间】:2017-06-18 18:01:15
【问题描述】:
我添加了以下构建脚本:
{
"cmd": ["/usr/local/bin/python3", "$file"]
, "selector": "source.python"
, "file_regex": "file \"(...*?)\", line ([0-9]+)"
}
当我在终端中运行which python3时,我得到以下信息:/usr/local/bin/python3 这告诉我在 Sublime 文件中有正确的路径。
但是,当我运行时
import sys
print(sys.version)
我还是得到了
2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
[Finished in 0.1s]
我将这个新的构建系统文件保存在
下库/应用程序支持/Sublime Text 3/Packages/User/Python3.sublime-build
【问题讨论】:
-
我已经查看了相关问题,即使遵循这些对 T 的建议也不适合我。
-
您是否从“工具”菜单 -> 构建系统中选择了新的构建系统?
-
@KeithHall 哇,那肯定很尴尬。感谢您的帮助!
标签: python python-3.x sublimetext3