配置sublime3的Anaconda 插件進行Python 代碼的自動補全功能
1.安裝anaconda插件
使用快捷鍵ctrl+shift+p打開指令面闆,輸入install,面闆上第一項應該會出現Package Control: Install Package
然後進行安裝anaconda
2.配置anaconda
修改Preference--Package Setttings--Anaconda--Settings Default檔案
修改python_interpreter 的路徑,指定python的安裝路徑
例如:"python_interpreter": "E:/python3/python3.exe"
3.配置自定義的anaconda
Preference--Package Setttings--Anaconda--Settings User
{
"python_interpreter": "E:/python3/python3.exe",
"suppress_word_completions": true,
"suppress_explicit_completions": true,
"complete_parameters": false,
"anaconda_linter_phantoms": true,
"pyflakes_explicit_ignore":
[
// "Redefined",
"UnusedImport"
// "UndefinedName",
// "UndefinedLocal",
// "UnusedVariable,",
// "UndefinedExport",
// "DuplicateArgument",
// "RedefinedWhileUnused"
],
"anaconda_linting_behaviour": "save-only",
}
配置sublime3的python開發環境
1.建立配置檔案
Tools-Build System-New Build System
然後填寫如下内容指定python的路徑:
"cmd": ["E:/python3/python3.exe","-u","$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python",
儲存檔案名為python3 然後選擇Python3的開發環境Tools-Build System-python3,重新開機sumblie3即可