python
2017.6.15 15:45 iMac--------------------------------------------------------------------------
然后选择安装Python插件Anaconda
cmd+shift+p:打开包管理->选择install package->搜索anaconda
1.在sublime text 3上面安装anaconda
然后安装SublimeCodeIntel的方式和上面一样
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
a.创建一个Python文件
输入:print "hello maozi"
运行:cmd+b
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pip install numpy
pip install numpy
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
module 保存的路径
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
2017.6.16 5:24 iMac--------------------------------------------------------------------------
指定在Python3上面安装module参考
e.g:python3 -m pip install requests
2017.9.15 16:58 iMac--------------------------------------------------------------------------
sublime text 切换编译器:tools->build system->选址编译器(也可以选址buil new system)
选址build new system粘贴以下内容到新创建的编辑界面,保存此文件在/Users/lxx/Library/Application\ Support/Sublime\ Text\ 3/Packages/User(根据自己sublime text在资源库中的位置决定)
{
"cmd": ["/usr/local/bin/python3(此处放置自己编译器所在路径)","-u","$file"],
"file_regex":"^[ ]*File \"(...*?)\",line ([0-9]*)",
"selector":"source.python",
"encoding":"utf-8"
}