sublime配置python2和3_请教各位,关于sublime text3 配置python环境的两个小问题。

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

第一个问题: 使用的是windows xp系统,安装的python2.7.9,sublimelinter安装的最新版。 安装了sublimelinter,然后再安装了sublimelinter-pylint,在语法检测时总会出现如图所示的错误。"invalid function name "xxxx"",无法取消该错误提示。

c1ec8043f13043d80ba4adc34fbfeff1.png

以下是配置文件:

{

"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***

请问是出什么问题了,该如何解决?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值