Setting up coc.nvim for python

yalef picture yalef · Jun 3, 2020 · Viewed 7.3k times · Source

I have installed coc.nvim and extension coc-python(:CocInstall coc-python)

When I opened file I refused of linting and then get error:

[coc.nvim] Jedi error: Traceback (most recent call last):                                                                                                                File "completion.py", line 694, in <module>
[coc.nvim] Jedi error: Traceback (most recent call last):                                                                                                      
[coc.nvim] Jedi error:     import jedi
ModuleNotFoundError: No module named 'jedi'

I tried to reinstall extension and plugin but It doesn't help.

Answer

joemrt picture joemrt · Jan 15, 2021

Looks like you don't have the jedi package installed for your python interpreter. I would expect it to work after you run (in your command line)

pip3 install jedi

I have also just seen that I installed the pynvim package in my python environment as well but I don't remember whether you need this.