简体   繁体   English

用于Python的Anaconda自动完成功能不起作用

[英]Anaconda auto-complete for Python does not work

I am programming in Python (in Sublime Text 3) and auto-complete feature works for 90% of the modules. 我使用Python(Sublime Text 3)编程,并且自动完成功能可用于90%的模块。 Modules like os, sys, unittest... 像os,sys,unittest之类的模块...

But now I am trying to use modules like selenium and numpy and they don't have auto-complete feature. 但是现在我正在尝试使用seleniumnumpy类的模块,它们没有自动完成功能。

I am using Anaconda ( conda ) package distribution and I am using Anaconda ST3 Plugin . 我正在使用Anaconda( conda )软件包分发,并且正在使用Anaconda ST3 Plugin Also tried something called (a plugin) Selenium Snippets . 还尝试了一种叫做(插件) Selenium Snippets None of that helps. 这些都没有帮助。

Please, any suggestions would be much appreciated. 请,任何建议将不胜感激。

Juris. 朱莉丝

The thing is that Anaconda has it's own package manager. 事实是Anaconda拥有自己的软件包管理器。 So you should install on it the external package you want to work with. 因此,您应该在其上安装要使用的外部软件包。

Try something like this on your terminal: 在您的终端上尝试以下操作:

conda install -c conda-forge PLUGINNAME=PLUGINVERSION

You can find a list of plugins and versions available here (after searching, look for conda forge : https://anaconda.org/conda-forge/repo 您可以在此处找到可用的插件和版本列表(搜索后,查找conda forgehttps : conda forge

Versions ref: 参考版本:
1. Selenium - https://anaconda.org/conda-forge/selenium/files 1.硒-https: //anaconda.org/conda-forge/selenium/files
2. Numpy - https://anaconda.org/conda-forge/numpy/files 2. Numpy- https: //anaconda.org/conda-forge/numpy/files

Hope this is what you were looking for. 希望这就是您想要的。

OK. 好。 This is sorted by Trial and Error. 这是按尝试和错误排序的。 Basically, I had to point my Sublime Text Anaconda Plugin to my Anaconda Package Managers path. 基本上,我必须将Sublime Text Anaconda Plugin指向Anaconda Package Managers路径。 I have edited the settings for Anaconda plugin and set the path like that: 我已经编辑了Anaconda插件的设置,并设置如下路径:

"python_interpreter": "/media/Work/anaconda3/bin/python", “ python_interpreter”:“ / media / Work / anaconda3 / bin / python”,

After that, it picked up all the packages from Anaconda (Conda) 之后,它从Anaconda (Conda)拿起了所有包裹

Thanks! 谢谢!

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

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