1、问题描述
m1 芯片的mac 中,nvim 使用vim-plug 做插件管理,在安装youcompleteme 后报错:youcompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support.
 
2、踩坑经历
因为这里提示python 版本,就下载了最新的python -> 3.10.4 。 将python3 映射到了python 上,解决了command not found:python 报错。


open .bash_profile
+ alias python="/usr/local/bin/python3"
source .bash_profile

经过网上大量搜索,先后从brew 上下载了make autoconf 等来解决 no such file 的相关报错(未果)。 
又下载vim macvim 等,并做了软链等相关配置,解决了vim 上没有python3 环境的问题。

 做了编译,发现报错还没有解决

3、解决方案
后来搜索了一番,发现要配置neovim 上的python3 环境,找了一圈代码:
pip3 install neovim
ps:安装python2环境代码
pip2 install neovim
下载后用:checkhealth 检查环境:
 在启动nvim时又出现错误: The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. 这里就直接到vim-plug 下的youcompleteme 目录,执行.install.py 或者用系统的python 路径/usr/bin/python install.py ,执行编译就ok了,此时已解决了这个问题,不会再报youcompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support. 这个错误了。
|