一、下載python安裝包。python
下載地址:https://www.python.org/ui
二、配置環境變量url
找到python的安裝路徑。C:\Python27;script的路徑:C:\Python27\Scripts;配置到環境變量。.net
配置環境變量步驟:1.My Computer→Advanced system settings→Advanced→Environment Variables→Path 複製進去便可code
三、打開命令提示符: win+R ,輸入 cmd 。輸入 python ,回車。顯示python的版本信息就代表安裝成功。如圖所示:blog
四、Sublime Text 3 python 配置ip
1.經過快捷鍵 ctrl+` 或者 View > Show Console 打開控制檯,而後粘貼相應的 Python 安裝代碼;cmd
2.Sublime Text 3 安裝代碼並回車:it
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf),'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())class
3.重啓Sublime Text 3;
4.若是在Perferences->package settings中看到package control這一項,則安裝成功。