在Sublime上写python装个anaconda就够了。
问题是:如何自动补全第三方库?
总共需要两步:
1.找到Python解释器的全路径
import sys
print(sys.executable)
我这里的输出是:/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
2.在Anaconda的Package Setting中找到"python_interpreter"
设置如下即可:
"python_interpreter": "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python",
参考链接: