【发布时间】:2014-07-18 16:33:14
【问题描述】:
我刚刚通过 sublime text 2 上的包管理器安装了 phpcs。当我转到工具--> 嗅探这个文件时,我在控制台中收到此错误:
traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./phpcs.py", line 599, in run
File "./phpcs.py", line 424, in run
File "./phpcs.py", line 139, in get_errors
File "./phpcs.py", line 215, in execute
File "./phpcs.py", line 218, in parse_report
File "./phpcs.py", line 169, in shell_out
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
错误是什么意思?如果我运行 python --version 我会看到 2.7.5。也许有一些问题,因为它正在寻找 /Versions/2.6?
【问题讨论】:
标签: sublimetext2