no such file怎么解决python_请问如何解决 No such file or directory: 'python'?

sublime Text3(3114) 中安装了一个 python flake8 lint。

保存执行的时候控制台输出以下结果。请问要怎么解决?

Traceback (most recent call last):

File "/Users/cg/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/Flake8Lint.py", line 1164, in

lambda: Flake8Lint.async_lint(view, view_settings, quiet=quiet), 0

File "/Users/cg/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/Flake8Lint.py", line 1221, in async_lint

interpreter, linter)

File "/Users/cg/Library/Application Support/Sublime Text 3/Packages/Python Flake8 Lint/lint.py", line 347, in lint_external

startupinfo=startupinfo

File "./python3.3/subprocess.py", line 819, in __init__

File "./python3.3/subprocess.py", line 1448, in _execute_child

FileNotFoundError: [Errno 2] No such file or directory: 'python'

我的python 版本是:

python -V

Python 2.7.12

下面是我的环境变量和python文件的路径

echo $PATH

/usr/local/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

which python

/usr/local/bin//python

你可能感兴趣的:(no,such,file怎么解决python)