When I open the nvim init.vim file, this error comes for Neoclide coc.vim

Viewed 3592

I get this error when I try to open the init.vim file for neovim, for neoclide coc.vim. Any solutions? in WSL(Ubuntu)

[coc.nvim] Error on execute :pyx command, ultisnips feature of coc-snippets requires pyx support on vim. use :CocOpenLog for details
4 Answers

Enter command pip install pynvim in your command line. It helped me. And before this you should have python on your PC.

you choose correct version of python in init.vim

let g:python3_host_prog="/usr/bin/version python" example

let g:python3_host_prog="/usr/bin/python3.10"

I tried with installing pynvim and also have the latest pip (21.3.1). My vim version is 9.0 and compiled it from scratch. But while searching the features included with vim, I realised that I had not included python. After following this answer, I enabled python while compiling vim. My issue has been resolved.

Related