UltiSnips requires py> = 2.6 or any py3

I try to install UltiSnips in different ways, but the same message appears every time I start vim. Python 2.7 is installed, but it seems that vim was installed before version 2.7.

I tried reinstalling vim using the 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

+4
source share
4 answers

You do not provide much information to help. You can check if your Vim has Python through :py print "yes". For the Python version, check the output :version. It will contain something like -lpython2.7.

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

+5

NeoVim Ubuntu. :CheckHealth . :

sudo ln -s /usr/bin/python /usr/local/bin/python
+3

http://www.vim.org/.

  • cd vim
  • make clean
  • ./configure --prefix =/opt/local --with-features = --enable-pythoninterp = yes --enable-multibyte --with-vim-name = vim --with-python-config- DIR =/USR/Library/python2.7/-x86_64-Linux-
  • sudo make install
+2

, , neovim . ubuntu pip :

sudo pip3 install neovim

python 3, , pip3 pip python 2.

0

All Articles