tha*_*man 13 python vim fedora
我编译了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.
谢谢
chi*_*sky 17
我的Debian盒子上有类似的问题.如果您使用的是基于Debian的系统,则无法同时加载两个Python库.这就是为什么当你设置--enable-python-interp并且--enable-python3-interp它们总是加载/ dyn后缀.
如果您的vim插件不需要两个版本,您应该选择其中一个版本并坚持使用它.以下链接提供了更多信息.
PS - 如果您在Windows上也尝试过这种方法,加载任何Python版本都可以,因此/ dyn不是问题.
| 归档时间: |
|
| 查看次数: |
9978 次 |
| 最近记录: |