相关疑难解决方法(0)

Vim使用Python支持编译但无法看到sys版本

我编译了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.

谢谢

python vim fedora

13
推荐指数
1
解决办法
9978
查看次数

标签 统计

fedora ×1

python ×1

vim ×1