0

I am trying to install vim with python3.6 in order to be able to use YouCompleteMe.

I cloned the source repository and install with commands:

./configure --with-features=huge \                   
            --enable-multibyte \
            --enable-rubyinterp=yes \
            --enable-python3interp=yes \
            --with-python3-command=python3.6 \
            --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --enable-gui=gtk2 \
            --enable-cscope \
            --prefix=/usr/local

make VIMRUNTIMEDIR=/usr/local/share/vim/vim82

and then:

sudo make install

After installation, when performing command:

:py3 print( __import__( 'sys' ).version )

I get the result:

3.5.2 (default, Jan 26 2021, 13:30:48)
[GCC 5.4.0 20160609]

I have even changed the alias to python3.6, updated alternatives and still the installation goes to 3.5.2. What can I do more?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.