vim-hug-neovim-rpc: Could not find neovim
I have installed neovim via pip install neovim, and in vim the command :python import neovim has no errors. However, when I opened the vim, it reported that No module named 'neovim'.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 34 (4 by maintainers)
Commits related to this issue
- add trouble-shooting section for https://github.com/roxma/vim-hug-neovim-rpc/issues/3 — committed to roxma/nvim-completion-manager by roxma 7 years ago
Having a similar issue on Arch, running
:pythonx import neovimI got this stack trace:But running
python3 -c 'import neovim'worked fine.This lead me to this issue over at
python-greenletpython-greenlet/greenlet#122 where the recommended solution is to downgradegreenletto0.4.10.After running
sudo pip3 install greenlet==0.4.10vim boots up fine.Hope this helps anyone else running into this problem ๐
@stevenmwade
pip3 install neovimis needed.Just installed
pip2 install --user neovimand this work for mi. View: https://robertbasic.com/blog/force-python-version-in-vim/@matarc Hi, ๐ I upgrade my vim by Homebrew and Itโs working fine now ! The error may caused by you upgraded your python but donโt re-compile your vim!
@willian
This plugin choose
pythonxifhas('pythonx'), thenpython3, thenpython.In your case, you need to ensure
:pythonx import neovimworks. Which implies ensuring:python import neovimshould work, judging by the information you provided.As an alternative, you could try add
set pyxversion=3into your vimrc, since:python3 import neovimworks on your system.