Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UltiSnips requires py >= 2.6 or any py3

Tags:

vim

python-2.7

I'm trying to install UltiSnips in different way but the same message appears each time when I launch vim. Python 2.7 is installed but it seems that vim has been installed before the 2.7 version.

I tryed to reinstall vim using this link:

$ sudo apt-get install mercurial libssl-dev
$ sudo apt-get build-dep vim
$ hg clone http://hg.debian.org/hg/pkg-vim/vim
$ cd vim
$ hg checkout unstable
$ debian/rules update-orig
$ dpkg-buildpackage -i -I
$ cd ..

But the same problem remains. Thanks

like image 835
Katsu Avatar asked Oct 03 '13 14:10

Katsu


1 Answers

You don't provide much information to help. You can check whether your Vim has Python via :py print "yes". For the Python version, check the :version output. It will contain something like -lpython2.7.

When you compile Vim yourself, you need to enable the Python integration by passing ./configure --enable-pythoninterp.

like image 186
Ingo Karkat Avatar answered Sep 28 '22 09:09

Ingo Karkat