Sunday, July 24, 2022

[SOLVED] Python Support missing from NeoVim

Issue

I have installed neovim from the official source using the appimage method Here's the link for that Official installation instructions

after doing all my config settings , i went to apply my config settings. which were followed from my .vimrc. After installing all plugins it said , python support missing. Python support missing

After all research,i couldn't find any solution. and now here's my nvim +checkhealth

checkhealth

These were the main reason i upgraded to neovim, including the clipboard support . my vim had python3 support , but missing on neovim.

I am on a ubuntu machine. and installed it with appimage.


Solution

Make sure python is set on your $PATH properly.
Set this in your .vimrc or init.lua:

let g:python3_host_prog = 'path/to/python3'
let g:python2_host_prog = 'path/to/python2'

Lua equivalent:

vim.g.python3_host_prog = 'path/to/python3'
vim.g.python2_host_prog = 'path/to/python2'

Install pynvim: bash pip3 install pynvim This should resolve the lack of python support.

There's more information regarding the reasoning of the requirements in the :help provider-python manual if you're interested.



Answered By - Sage
Answer Checked By - Cary Denson (WPSolving Admin)