简体   繁体   English

Sublime text 3 Anaconda autocomplete无法正常工作

[英]Sublime text 3 Anaconda autocomplete not working

I have an issue when I try to edit Python code in Sublime on Mac OS. 当我尝试在Mac OS上的Sublime中编辑Python代码时,我遇到了一个问题。 The autocomplete is not working in Sublime but is working well in the terminal. 自动完成功能在Sublime中不起作用,但在终端中运行良好。

I checked several things between Sublime and terminal. 我检查了Sublime和终端之间的几件事。

The Python version was the same as Anaconda 3.7.3: Python版本与Anaconda 3.7.3相同:

>>> import sys
>>> sys.version
‘3.7.3 (default, Mar 27 2019, 16:54:48) \n[Clang 4.0.1 (tags/RELEASE_401/final)]’

In the Anaconda.sublime-settings: 在Anaconda.sublime设置中:

“python_interpreter”: “/Users/J/anaconda3/bin/python”,
“disable_anaconda_completion”: false,

When I tried coding in Sublime nothing shows: 当我在Sublime中尝试编码时没有显示:

在此输入图像描述

But it works well in the terminal. 但它在终端上运行良好。

在此输入图像描述

Code can execute well on both sides. 代码可以在双方都很好地执行。

I followed the documentation about installing Sublime Text 3 and Anaconda and it is working well for me. 我按照有关安装Sublime Text 3和Anaconda 的文档进行操作 ,它对我来说效果很好。

  1. Install Sublime Text 3 at http://www.sublimetext.com/3 http://www.sublimetext.com/3上安装Sublime Text 3
  2. Install package control at https://packagecontrol.io/installation https://packagecontrol.io/installation安装包控件
  3. Manually install Anaconda at https://github.com/DamnWidget/anaconda/archive/v2.1.14.tar.gz 通过https://github.com/DamnWidget/anaconda/archive/v2.1.14.tar.gz手动安装Anaconda

The packages directory can be found in: packages目录可以在以下位置找到:

Linux: ~/.config/sublime-text-3/Packages
OS X: ~/Library/Application Support/Subime Text 3/Packages
Windows: %APPDATA%\\Sublime Text 3

Restart Sublime Text 3 and enjoy. 重新启动Sublime Text 3并享受。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM