python-3.xunixvimvim-pluginyoucompleteme

YouCompleteMe unavailable: requires Vim compiled with Python (3.8.0+) support


I would like to install the vim plug-in YouCompleteMe but after installing, when I launch Vim I get the warning:

YouCompleteMe unavailable: requires Vim compiled with Python (3.8.0+) support.

I know that I have Python 3.9.13 installed on my machine so I don't see what the issue is.

Could anyone help with this issue?


Solution

  • The operative phrase in that error message is "compiled with". It's not the version(s) of Python you have installed on your system that matter, but the version of Python that your Vim installation supports.

    You can refer to the Installation section of YouCompleteMe's README for what Vim runtimes are supported. You may be able to install a compatible version of Vim using your preferred package manager. Failing that, you can always build Vim from source.