Help us understand the problem. What is going on with this article?

pip install neovim しても「ERROR: Neovim Python client is not installed.」と怒られる場合

More than 1 year has passed since last update.

2018/11/18 の neovim アップデートによって pip の neovim というパッケージが使えなくなりました。
というか、リネームされて pynvim というパッケージに変わりました。
参考: https://github.com/neovim/neovim/wiki/Following-HEAD#20181118

今までは正常に動いていた neovim を起動させるとこんなエラーが出るようになります。

:checkhealth の結果

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "/usr/local/bin/python3"
  - INFO: Executable: /usr/local/bin/python3
  - ERROR: Command error (job=7): `'/usr/local/bin/python3' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'` (in '/Users/bruce/work/encoding-service')
    Output: Traceback (most recent call last):  File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
  - INFO: Python3 version: 3.7.1
  - INFO: python3-neovim version: unable to load neovim Python module
  - ERROR: Neovim Python client is not installed.
    Error: unable to load neovim Python module
    - ADVICE:
      - Run in shell: pip3 install neovim

対処法

neovim を uninstall して pyneovim を install しましょう。

pip uninstall neovim
pip uninstall pynvim # only if you tried to upgrade already and it failed
pip install pynvim

これでもダメな場合は pip install -U pynvim とかやるといいかもしれません。

結果

うまくいったようです。

## Python 3 provider (optional)
  - INFO: pyenv: /Users/mshibata/.pyenv/libexec/pyenv
  - INFO: pyenv root: /Users/mshibata/.pyenv
  - INFO: Using: g:python3_host_prog = "/Users/mshibata/.pyenv/shims/python3"
  - INFO: Executable: /Users/mshibata/.pyenv/shims/python3
  - INFO: Python3 version: 3.7.1
  - INFO: python3-neovim version: 0.3.1
  - OK: Latest python3-neovim is installed: 0.3.1
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away