error: required vim compiled with +python
2017-03-19 15:23
1601 查看
如何解决error: required vim compiled with +python?
首先,查看vim –version中的版本信息来获得提示:该问题实在我对/.virmc 文件惊醒更改后出现来。而且用上了自动补全的功能,自动补全的功能目前之针对python2
但是我之前更改vim 只支持python3.所以问题就出在这儿。
参考stackoverflow之后才发现解决方法。
You may need to remove other packages such as vim-gnome, vim-gtk, vim-nox ... to avoid conflicts.
上面提示说可以利用
vim-gnome, vim-gtk, vim-nox ...之类的名称来防止冲突。
于是通过:
sudo apt-get install vim-gnome-py2
一行命令就大功告成了!
输入vim再也没有报错了。
参考链接
相关文章推荐
- Ubuntu 16.04 vim 报错: required vim compiled with +python
- YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+)
- requires Vim compiled with Python (2.6+ or 3.3+) s
- Pymode requires vim compiled with +python. Most of features will be disabled.
- Python安装scrapy提示 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++
- vim安装插件YouCompleteMe,出错,YouCompleteMe unavailable: requires Vim compiled with Python 2.x support
- ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c FATAL ERROR - Terminating pro
- MAC安装python模块碰到“error: command 'cc' failed with exit status 1”解决办法
- 编译python拓展pycurl抛error: command 'gcc' failed with exit status 1
- mac下安装mysql-python包报unable to execute llvm-gcc-4.2: No such file or directory error: command 'llvm-gcc-4.2' failed with exit status 1解决方法
- python中MySQL模块TypeError: %d format: a number is required, not str异常解决
- glibc-2.15编译error: linker with -z relro support required
- 安装python-MySQLdb 出现error: command 'gcc' failed with exit status 1的解决方法
- Error creating bean with name 'org.springframework.context.annotation.internalRequiredAnnotationProc
- Centos4.3安装MySQL-python-1.2.3,出现error: command 'gcc' failed with exit status 1
- 解决FindBLAS.cmake error LAPACK/BLAS: A required library with BLAS API not found.
- Linux install python lxml error: command ‘gcc’ failed with exit status 1
- ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c FATAL ERROR - Terminating pro
- error: Python was built with Visual Studio 2003
- 安装MySQL-python时发生错误:error: command 'gcc' failed with exit status 1