Ubuntu16.04下编译vim with python support失败的原因

时间:2021-11-05 06:50:46

- youcompleteme原话:On Ubuntu 16.04, Python support was not working due to enabling both Python2 and Python3. Read answer by chirinosky for workaround.

- 第一个回答这个问题的, http://*.com/questions/23023783/vim-compiled-with-python-support-but-cant-see-sys-version

- 解决办法:在编译的时候只选择python3支持, 或者只选择python2支持.

原因:

1. debian禁止了在同一进程同时加载libpython2和libpython3的库

2. debian 不喜欢python动态加载库的机制(python-dyn这个)