13
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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
13
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?