How to solve "requires python 2.x support" in linux vim,and it have python 2.6.6 in my system

linux, python, vim

Solution

In Ubuntu/Lubuntu 16.04, I have success with installing `vim-gnome-py2`

sudo apt-get install vim-gnome-py2

My `vim --version | grep python` after installing it:

$ vim --version | grep python
+cryptv          +linebreak       +python          +vreplace
+cscope          +lispindent      -python3         +wildignore

You may need to remove other packages such as `vim-gnome`, `vim-gtk`, `vim-nox` ... to avoid conflicts.

Problem

``` [root@localhost bin]# python -V Python 2.6.6 [root@localhost bin]# ./vim UltiSnips requires py >= 2.6 or any py3 YouCompleteMe unavailable: requires Vim compiled with Python 2.x support ``` i have try it in centos 6.4 ,and fedora 20. It's the same problem. i am new coder ,i really do not know why it happen.

Original source

Related problems