Sublime text:如何通过构建系统激活 conda 环境

Sublime text : How to activate conda environment via build system

我想在 Sublime text 3 上为 Python 配置第二个构建系统。默认情况下它使用 Python 2.7。目前,如果我想使用 Python 3.5,我执行 activate py35,它就像一个魅力。

这是我原来的构建系统:

{
    "cmd": ["start", "cmd", "/k", "python", "-u", "-i", "$file"],
    "selector": "source.python",
    "shell": true,
    "working_dir": "$file_dir"
}

我在之前添加了这一行:

    "cmd": ["activate", "py35"],

我找到了 但它没有帮助,即使我的环境已激活,which 命令也无法识别:

您不能再添加 "cmd"。 JSON 不允许重复键。

您也不需要激活任何东西。给出 Python 可执行文件

的完整路径

例如

"cmd": ["start", "cmd", "/k", "C:/Users/name/path/py35/Scripts/python",