linux sublime python
(三)配置python3编译环境
1.点击上部菜单栏Tools->Build System ->new Build System
2.点击之后,会出现一个空的配置文件,此时,往这个空配置文件拷贝以下代码:
|
1
2
3
4
5
|
{ "cmd": ["/usr/local/bin/python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } |
其中,/usr/local/bin/python3为系统安装Python的环境路径,以Ubuntu为例,打开terminal,输入 which python3就可以显示python3所在路径。
3.保存配置文件,默认打开弹出的框的路径下保存,命名为python3.sublime-build。
4.最后在sublime text3中依次点击Tools->build System中选择python3,便可以用Ctrl+B调用Python3进行代码编译。
至此,所有的配置都已经结束!!!
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
_________________________________________________________________________________________________________________________________________________
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采

浙公网安备 33010602011771号