我使用 Manjaro(5.6.7 内核),我正在尝试在 neovim 上安装 YCM。之前做过,不过是vim,用的是vundle,这次用的是vim-plug。我在启动 newvim 时收到此消息。
YouCompleteMe unavailable: requires Vim compiled with Python (3.5.1+) support.
谢谢!
最佳答案
YouCompleteMe 经常崩溃,所以我写下了恢复它的步骤:
<强>1。尝试重新安装 YCM:
$ python <DOTFILE_PATH>/vim/plugged/youcompleteme/install.py --clang-completer
<强>2。收到以下错误?
ERROR: found static Python library (/Users/USER/.pyenv/versions/3.7.2/lib/python3.7/config-3.7m-darwin/libpython3.7m.a) but a dynamic one is required.
然后:
$ export PYTHON_CONFIGURE_OPTS="--enable-framework"
$ pyenv install 3.7.2
<强>3。如果 neovim 抛出错误 “[...] requires Vim compiled with Python (2.7.1+ or 3.4+) support” 在启动时,那么:
$ python3 -m pip install --user --upgrade pynvim
将 3.7.2
替换为您的实际 python3 版本。不需要坚持旧版本,只是因为我前阵子写了这篇笔记。
关于vim - 无法在 neovim 中运行 YouCompleteMe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61539258/