pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
706 stars 87 forks source link

anaconda-mode does not complete modules from pip3 #415

Open zbinkz opened 3 years ago

zbinkz commented 3 years ago

Using Spacemacs 0.300.0 develop on Debian stable 10.9

I get completions for modules from the official Python3 installation (math, numpy, matplotlib, etc.) in the source code buffer, but not for packages from pip3 and other Debian python3 repositories that are not part of the official python3 distribution (python3-dolfin, python3-meshio, or even their pip3 versions). Python2 packages complete just fine whether installed from Debian repositories or pip. Python3 completions work for everything in the REPL and shells as well.

My python layer setup in Spacemacs is the following:

(python :variables python-backend 'anaconda)

I also have the following in my user-config:

(setq python-shell-interpreter "python3")

Had an error finding importmagic and epc installed with pip3 only but it went away when I installed them with pip as well. Currently I have importmagic-0.1.7 and epc-0.0.5 installed with pip and pip3. same for jedi-0.17.2 and parso-0.7.1.

Any idea why Python3 packages do not complete?