Sublimetext suddenly won't build .py script (Anaconda3). KeyError: 'conda_environment'

Sublimetext suddenly won't build .py script (Anaconda3). KeyError: 'conda_environment'

已解决。显然我以某种方式停用了我的 Conda 环境。在 Sublime 控制台中输入 Conda: Activate Environment 修复了它。

我正在使用 Anaconda3 来 运行 在我的工作场所开发的脚本。我已经将 SublimeText 设置为 view/edit 脚本,并使用构建命令 运行 它们。直到今天,我已经能够 运行 正常编写脚本了。

然而,今天,一些命令没有用白框括起来,我在尝试构建脚本时收到一个错误命令。Here's a screenshot showing the markings and error message

我先是重启了电脑,没有用。然后我卸载并重新安装了 Conda 和 Anaconda 的软件包,但也未能修复它。谷歌搜索“sublime conda not building”给了我关于构建脚本时的错误消息的结果,而不是无法完全构建。我也找不到与我的特定错误消息匹配的内容。

有什么见解吗?如果不是很明显,我是 python & sublime 的新手。谢谢

编辑:白框现在不见了。更重要的是,显然它们与 linting 相关,并且(可能)与主要关注的未构建脚本无关。

编辑2: 插件的 URLS Conda and Anaconda

我找不到 conda.sublime-build,但我找到了 conda.sublime-settings,我认为它们是同一回事。如果没有,请让我知道在哪里看。 (这是在用户包下)。这些设置粘贴在下面。

// Default Windows settings for sublime-text-conda:
{
    // executable is the path to anaconda's python
    // this python executable is used in order to find conda
    "executable": "C:\Users\26036\Anaconda3\python.exe",

    // Directory in which the conda envs are stored
    // Default location is the user's home directory
    "environment_directory": "C:\Users\26036\Anaconda3\envs\",
    
    // System architecture for Python installation
    // options: 32 or 64 bit
    "architecture": "64",

    // configuration is the path to conda's configuration file
    "configuration": "~\.condarc",

    // when true, the scripts will be run through the shell
    // If your code has a GUI (e.g. a matplotlib plot),
    // this needs to be true, otherwise Windows suppresses it.
    "run_through_shell": false,

    // when true, the script execution will be handed over to
    // the pythonw executable, instead of python
    "use_pythonw": false,

    // open repl in second row tab below current file,
    // closing any existing tabs in that area
    // assumes files are kept in group 0 (typical)
    "repl_open_row": false,

    // when opening a repl using repl_open_row, close any
    // existing conda repls in the second row first
    "repl_row_close_existing": false,

    // save the current file (if dirty) when opening repl
    "repl_save_dirty": true,

    // syntax highlighting for Open REPL command
    // choice between 'python' and 'plaintext'
    "repl_syntax": "python"
}

EDIT3:我同时安装了 Conda 和 Anaconda3 软件包。当它运行时,我选择了 Conda 作为我的构建系统。我确定环境已激活,因为我能够事先 运行 脚本,但也许环境已停用?

原来我的 Conda 环境不知何故变得不活跃。在 Sublime 控制台中输入“Conda: Activate Environment”修复了它。感谢 MattDMo 建议我检查它。