简体   繁体   中英

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. Modules like os, sys, unittest...

But now I am trying to use modules like selenium and numpy and they don't have auto-complete feature.

I am using Anaconda ( conda ) package distribution and I am using Anaconda ST3 Plugin . Also tried something called (a plugin) 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. 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

Versions ref:
1. Selenium - https://anaconda.org/conda-forge/selenium/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. I have edited the settings for Anaconda plugin and set the path like that:

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

After that, it picked up all the packages from Anaconda (Conda)

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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