Mac+SublimeREPL出错

出现这个错误,因为我的python3是直装的,环境一直没设好orz:
SublimeREPL: obtaining sane environment failed in getenv()
Check console and 'getenv_command' setting
WARN: Falling back to SublimeText environment

解决办法是:

1、打开:Package Settings -> SublimeREPL -> Settings - User

{
    "default_extend_env": 
        {"PATH": 
            "{PATH}:/Library/Frameworks/Python.framework/Versions/3.6/bin"
        },
    "getenv_command": false
}

2、打开Sublime Text 3/Packages/SublimeREPL/config/Python/Main.sublime-menu
找到IPython的cmd,把osx的改成

 "osx": ["/Library/Frameworks/Python.framework/Versions/3.6/bin"],

反正也不知道哪个对了,一定要都改,才能不出错和input输入。

你可能感兴趣的:(Mac+SublimeREPL出错)