终端输入vim,提示:
处理 /home/zc/.vim/bundle/fcitx.vim/plugin/fcitx.vim 时发生错误:
第 50 行:
E887: Sorry, this command is disabled, the Python’s site module could not be loaded.
请按 ENTER 或其它命令继续
解决方案:
在我这里遇到的问题是,在本地源码编译vim时,配置了Python的路径:
./configure –with-features=huge –enable-pythoninterp –enable-rubyinterp –enable-luainterp –enable-perlinterp –with-python-config-dir=/usr/lib/python2.7/config/ –enable-gui=gtk2 –enable-cscope –prefix=/usr
上述配置与本地配置不同,于是采用如下配置:
./configure –enable-pythoninterp
在该配置中简化了大部分的参数,之后正常运行。