SublimeText Python Anaconda第三方库自

2017-04-01  本文已影响3562人  nlpjoe

在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",

Paste_Image.png

参考链接:

http://stackoverflow.com/questions/43154812/how-to-make-the-third-party-library-twisted-of-python-automatically-complete-in/43155137#43155137

上一篇 下一篇

猜你喜欢

热点阅读