YouCompleteMe ycmd server SHUTDOWN 和 pyenv的问题

周末手欠,pip uninstall 的时候不小心接了个pip在后面,结果虚拟环境里的pip就没了。

那当然是重新装一个就好了:pyenv install 3.7.0,但是此后YouCompleteMe一直挂,有时候又不挂。终于找到了原因:

YCM需要动态链接Python的库,因为我直接 pyenv install 3.7.0,实际上链接到的是老的库,pyenv默认是静态链接。

修复:

$ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.0
$ ./install.py  # 重新编译ycmd