为什么我的控制台在Sublime上给我一堆错误消息



在Sublime Text 3中下载Terminus(我不知道这是否与问题有关(后,我注意到当我按下";ctrl+`"它打开控制台,显示了大量错误消息。这里发生了什么事,我该怎么解决?提前感谢!

错误如下:

Make sure your interpreter is a valid binary and is in your PATH or use an absolute path to it, for example: C:\Python27\python.exe
...last message repeated one more time in the last 10s
ERROR:root:Your operating system denied the spawn of /usr/local/bin/python3 process. Make sure your configured interpreter is a valid python binary executable and is in the PATH
The OS did return [WinError 2] The system cannot find the file specified
anacondaST3: ERROR - <Anaconda.anaconda_lib.workers.local_process.LocalProcess object at 0x0000017199588518> process can not start a new anaconda JsonServer in the operating system because:
Anaconda can not spawn a new process with your current configured python interpreter (/usr/local/bin/python3)
Make sure your interpreter is a valid binary and is in your PATH or use an absolute path to it, for example: C:\Python27\python.exe
anacondaST3: ERROR - <Anaconda.anaconda_lib.workers.local_process.LocalProcess object at 0x00000171991DFDA0> process can not start a new anaconda JsonServer in the operating system because:
Anaconda can not spawn a new process with your current configured python interpreter (/usr/local/bin/python3)

此错误与Anaconda插件有关,而与Terminus无关。您需要设置默认Python解释器的路径。如果您还不知道,请点击WinR,然后键入cmd并点击Enter

where python

并且将打印出一行或多行,假设您已经安装了Python并在PATH中。记下第一行。

接下来,返回Sublime并转到Preferences → Package Settings → Anaconda → Settings—User。如果文件不是为空,则添加行

"python_interpreter": "c:/path/to/python.exe",

用实际路径替换CCD_ 5。可以使用单正斜杠/作为路径分隔符,也可以使用双反斜杠\。只是不要使用单个反斜杠,因为这可能会引起问题。

如果用户偏好文件中没有任何内容,请将其内容设置为以下内容:

{
"python_interpreter": "c:/path/to/python.exe",
}

保存文件,希望错误消息会消失。如果您想在那里配置关于Anaconda的任何其他内容,请打开Preferences → Package Settings → Anaconda → Settings—Default并复制您想要自定义的任何密钥。只要确保每一行都以逗号,结尾即可。最后一行不必这样,但如果这样做,也不会有任何伤害。

相关内容

  • 没有找到相关文章

最新更新