我编译了Vim的开发版本,同时支持Python 2和Python 3.输出vim --version有+python/dyn和+python3/dyn在其中.我用g运行配置文件
./configure --enable-pythoninterp --enable-python3interp --with-python-config-dir=/usr/lib64/python2.7/config --with-python3-config-dir=/usr/lib64/python3.3/config --with-x --with-features=huge
但是,当我跑步时,:python import sys; print(sys.version)我得到了
E448: Could not load library function _PyArg_Parse_SizeT
E263: Sorry, this command is disabled, the Python library could not be loaded.
Run Code Online (Sandbox Code Playgroud)
为什么会这样?我发现因为YouCompleteMe声明它需要使用2.x支持编译Vim.
谢谢