sublime text 3 python 开发环境配置

1 .安装 package install 插件

�import urllib.request,os,hashlib; h = ‘eb2297e1a458f27d836c04bb0cbaf282’ + ‘d0e7a3098092775ccb37ca9d6b2e4b7d’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/’ + pf.replace(’ ‘, ‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)

2. 安装插件

  • windows ( crtl+shift+P) mac (command+shift+p) -> install packages
  • sideBarEnhancements
  • all autocomplete
  • sublimecodeintel
  • pylinter

3. 配置pylinter

Pylinter could not automatically determined the path tolint.py
.Please provide one in the settings file using thepylint_path
variable.NOTE:If you are using a Virtualenv, the problem might be resolved by launching Sublime Text from correct Virtualenv.

4. 安装 mac port

  • 官网下载 https://www.macports.org/install.php
  • export PATH=$PATH:/opt/local/bin
  • source .profile
  • sudo port -v selfupdate

5.安装 python 系

  • sudo xcode-select –install (optional)
  • sudo port install python27
  • sudo easy_install pippip intall pylint

你可能感兴趣的:(sublime text 3 python 开发环境配置)