我当时正在YouTube上观看Corey Schafer的视频,内容是“在sublime文本中设置Python开发环境”。 我安装了anaconda软件包,但由于某些原因,线号列中没有显示沟槽标记(用于线头)
我没有更改默认设置。 我已将Corey的用户设置添加到sublime anaconda用户设置文件中:
{
"auto_formatting": true,
"autoformat_ignore":
[
],
"pep8_ignore":
[
"E501"
],
"anaconda_linter_underlines": false,
"anaconda_gutter_marks": true,
"anaconda_linter_mark_style": "none",
"display_signatures": false,
"disable_anaconda_completion": true,
"python_interpreter": "/usr/local/bin/python3"
}
我应该注意到,我还尝试添加:
"anaconda_gutter_marks": true,
无济于事
我还保存了设置并重新启动了升华文本
在从correy的GitHub复制代码的地方,有一行名为
"python_interpreter": "/usr/local/bin/python3"
只需删除该行并重新启动sublime,错误就会再次显示出来查看屏幕截图:
您需要将
"python_interpreter"
设置更改为系统上python.exe
可执行文件的实际路径。打开cmd
并输入which python
可能有助于找到它。一旦找到它,将和\
字符更改为/
——例如,C:\Python38\python.exe
将变成C:/Python38/python.exe
相关问题 更多 >
编程相关推荐