Home > Backend Development > Python Tutorial > win7 下搭建sublime的python开发环境的配置方法

win7 下搭建sublime的python开发环境的配置方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-16 08:43:43
Original
1132 people have browsed it

Step1:安装python和sublime

Step2:给sublime安装package control,安装参见: 官网

Step3:配置安装路径

方式一:配置windows的Path

好处就是cmd的时候也可以运行,视为系统,用户级别的配置;

方式二:配置sublime的python的sublime_build

点击:Preference -> Browse Packages -> 在python目录下,编辑Python.sublime-build文件,添加python应用程序的路径:

{
 "cmd":["python.exe", "-u", "$file"],
 "path":"C:/Python27",
 "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
 "selector": "source.python"
}

Copy after login

至此,就可以使用ctrl + b的方式直接运行当前的python代码了。

step4:安装某些插件

安装方式:

Ctrl+Shift+P打开控制面板,找到Install Package,回车;在弹出框中输入插件名称,回车安装即可。或者按照插件的说明文档进行安装。

网上推荐插件:

SublimeREPL 可以用于运行和调试一些需要交互的程序。
SublimeCodeIntel 可以支持代码的自动补全以及成员/方法提示等功能。
SublimeLinter 是用来在写代码时做代码检查的,可以检查Python代码是否符合PEP8的要求。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why doesn’t Sublime Text complete code?
From 1970-01-01 08:00:00
0
0
0
Installation of Sublime Text console failed
From 1970-01-01 08:00:00
0
0
0
Sublime configures PHP environment
From 1970-01-01 08:00:00
0
0
0
Sublime text 3 cannot install Emme?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template