【问题标题】:Sublime Text Python Autocomplete崇高文本 Python 自动完成
【发布时间】:2014-02-07 21:36:35
【问题描述】:

我安装了包 SublimePythonIDE。错误突出显示工作正常,但自动补全不起作用。这是我的配置:

{
    // leave empty string to use default system interpreter
    // e.g. /usr/local/bin/python
    // or "C:\\Python27\\python.exe"
    // if you use virtualenvs, then set the absolute path to the virtualenv's
    // python in your project settings (Project->Edit Project) as in:
    //
    // {
    //     "folders": ...
    //     "settings":
    //     {
    //         "python_interpreter": "/Users/USER/.virtualenvs/PROJECT/bin/python"
    //     }
    // }
    "python_interpreter": "D:/Python27/",

    // make python_open_documentation command output in a view or in the output
    // panel if false
    "open_pydoc_in_view": false,

    // when a doc view is created it will be placed in the active view group
    // if false and only one group exist then a new group will be created
    "create_view_in_same_group": false,

    // Linter settings
    "python_linting": true,
    "python_linter_mark_style": "outline", // "none" or "outline"
    "python_linter_gutter_marks": true,
    "python_linter_gutter_marks_theme": "simple", // see folder gutter_mark_themes
    "pep8": true,
    "pep8_ignore": [],
    "pep8_max_line_length": 80,
    "pyflakes_ignore": []
}

我做错了什么?

【问题讨论】:

  • 可能不是您感兴趣的内容。但是用于 sublime 的包 anaconda 似乎开箱即用。我认为它使用 pythonpath 来查找自动完成的解释器。它还进行错误处理和 linting。还有标准“您是否尝试将其关闭然后再打开”? :P

标签: python autocomplete package sublimetext3


【解决方案1】:

如果您查看第 3 行和第 4 行的示例,您会发现您需要提供 Python 可执行文件的完整路径。所以,把你的行改成这样:

"python_interpreter": "D:\\Python27\\python.exe",

你应该准备好了。

【讨论】:

    猜你喜欢
    • 2015-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-13
    • 2016-08-24
    • 1970-01-01
    • 2018-07-31
    • 1970-01-01
    相关资源
    最近更新 更多