sublime默认运行python3

来源:互联网 发布:淘宝类目在哪里修改 编辑:程序博客网 时间:2024/06/07 04:41

环境:Ubuntu 16.10 sublime 3

Ubuntu默认环境2.7  有些是要用3.5的,所以,用这个方法来运行可以的


1;Tools -> Build System ->new build system

2;删完,然后全部覆盖:

{ "cmd": ["/usr/bin/python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" }
3保存,名字:python3

ok、


0 0