1.分别安装好python2.7.11和python3.6.1之后,添加到系统环境变量中(安装时请选择,安装完成之后,把用户变量中的python版本添加到系统变量中(未尝试不添加的情况));
2.将python3+版本的 python.exe改成python3.exe
这样cdm就会出现:

3.sublime 添加SublimeREPL插件,其中的python默认为2.X版本。复制一个config——python的文件夹,将Default.sublime-commands和Main.sublime-menu中的python全部改成python3,同时将文件夹命名为python3。 这样SublimeREPL就会出现python和python3的编译选项;
4.安装第三方库: cdm中 使用 python -m pip install ** 默认为2.x版本, 使用python3 -m pip install ** 默认为3.x版本
5.设置快捷键:
1 [ 2 3 {"keys":["f4"], 4 5 "caption": "SublimeREPL: Python - RUN current file", 6 7 "command": "run_existing_window_command", "args": 8 9 { 10 11 "id": "repl_python_run", 12 13 "file": "config/Python/Main.sublime-menu" 14 15 } 16 17 }, 18 19 {"keys":["f5"], 20 21 "caption": "SublimeREPL: Python3 - RUN current file", 22 23 "command": "run_existing_window_command", "args": 24 25 { 26 27 "id": "repl_python3_run", 28 29 "file": "config/Python3/Main.sublime-menu" 30 31 } 32 } 33 ]
浙公网安备 33010602011771号