当我打开 nvim init.vim 文件时,Neoclide coc.vim 出现此错误

发布于 2025-01-13 06:37:54 字数 242 浏览 3 评论 0原文

当我尝试打开 neovim 和 neoclide coc.vim 的 init.vim 文件时,出现此错误。有什么解决办法吗?在 WSL(Ubuntu)中

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

千と千尋 2025-01-20 06:37:54

在命令行中输入命令pip install pynvim。它帮助了我。在此之前,你的电脑上应该已经安装了 python。

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

薔薇婲 2025-01-20 06:37:54

你在 init.vim 中选择了正确的 python 版本

let g:python3_host_prog="/usr/bin/版本 python"
示例

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

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"

她比我温柔 2025-01-20 06:37:54

我尝试安装 pynvim 并且也有最新的 pip (21.3.1)。我的vim版本是9.0,是从头编译的。
但在搜索 vim 包含的功能时,我意识到我没有包含 python。在遵循 this 答案后,我在编译 vim 时启用了 python。我的问题已经解决了。

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.

江南烟雨〆相思醉 2025-01-20 06:37:54

我必须先升级pip ,然后运行pip install pynvim

I had to upgrade pip first, then run pip install pynvim.

奶气 2025-01-20 06:37:54

很可能你的默认 python 安装由于某种原因在你的机器上损坏了(对我来说也是一样)。
尝试从终端运行 python 命令。
如果您收到命令无法识别,那么您就知道这就是问题所在。

重新安装 python 或
将 vim 使用的 python 路径设置为可以运行的已安装的 python 版本

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

假设您安装了 python3。

Most likely you default python install broke for some reason on you machine (was the same for me).
Try running the python command from the terminal.
If you get command not recognized than you know this is the problem.

Reinstalling python or
set the python the python path that vim uses to an installed python version that works

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

Assuming you have python3 installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文