该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
第一个问题: 使用的是windows xp系统,安装的python2.7.9,sublimelinter安装的最新版。 安装了sublimelinter,然后再安装了sublimelinter-pylint,在语法检测时总会出现如图所示的错误。"invalid function name "xxxx"",无法取消该错误提示。
以下是配置文件:
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "load/save",
"linters": {
"pyflakes": {
"@disable": false,
"args": [],
"excludes": []
},
"pylint": {
"@disable": false,
"args": [],
"disable": "",
"enable": "",
"excludes": [],
"paths": [],
"rcfile": "",
"show-codes": false
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": true,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
第二个问题:
安装了ipython,在cmd命令行下使用正常,在sublime text3中使用时出错,错误信息如下:
C:\Python27\lib\site-packages\IPython\frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
warn("The top-level `frontend` package has been deprecated. "
Traceback (most recent call last):
File "D:\kevmit\soft\Sublime Text Build 3080\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 45, in
from IPython.frontend.terminal.console.app import ZMQTerminalIPythonApp
File "C:\Python27\lib\site-packages\IPython\terminal\console\app.py", line 25, in
from IPython.consoleapp import (
File "C:\Python27\lib\site-packages\IPython\consoleapp.py", line 19, in
from IPython.kernel.blocking import BlockingKernelClient
File "C:\Python27\lib\site-packages\IPython\kernel\__init__.py", line 4, in
from . import zmq
File "C:\Python27\lib\site-packages\IPython\kernel\zmq\__init__.py", line 8, in
check_for_zmq('13', 'IPython.kernel.zmq')
File "C:\Python27\lib\site-packages\IPython\utils\zmqrelated.py", line 12, in check_for_zmq
raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
ImportError: IPython.kernel.zmq requires pyzmq >= 13
***Repl Closed***
请问是出什么问题了,该如何解决?