python2 goes to see python3 in neovim's CheckHealth

Asked 2 months ago, Updated 2 months ago, 3 views

INFO:Python2version:3.6.3 > Why?
I have made neovim2 for py2 and neovim3 for py3 in virtualenv.

health#provider#check↲
========================================================================↲
## Clipboard (optional) ↲
  - OK: Clipboard tool found: pbcopy ↲
↲
## Python 2 provider (optional) ↲
  - OK: pyenv found: "/Users/okamura/dotfiles/.pyenv/libexec/pyenv" ↲
  - INFO:Using:g:python_host_prog="~/.pyenv/versions/neovim2/bin/python" ↲
  - INFO: Executable: /Users/okamura/.pyenv/versions/3.6.3/bin/python↲
  - WARNING: Unexpected Python version. This could lead to confusing error messages.↲
  - INFO: Python 2 version: 3.6.3 ↲
  - INFO: python-neovim version: 0.2.0 ↲
  - OK: Latest python-neovim is installed: 0.2.0 ↲
↲
## Python 3 provider (optional) ↲
  - OK: pyenv found: "/Users/okamura/dotfiles/.pyenv/libexec/pyenv" ↲
  - INFO:Using:g:python3_host_prog="~/.pyenv/versions/neovim3/bin/python" ↲
  - INFO: Executable: /Users/okamura/.pyenv/versions/3.6.3/bin/python↲
  - INFO: Python 3 version: 3.6.3 ↲
  - INFO: python-neovim version: 0.2.0 ↲
  - OK: Latest python-neovim is installed: 0.2.0 ↲

.config/nvim/init.vim contains the following two lines:

letg: python_host_prog='~/.pyenv/versions/neovim2/bin/python' ↲
letg: python3_host_prog='~/.pyenv/versions/neovim3/bin/python'

python vim neovim

2022-09-30 14:24

1 Answers

Sorry, I solved myself. python_host_prog is the full path and it's healed

health#provider#check↲
========================================================================↲
## Clipboard (optional) ↲
  - OK: Clipboard tool found: pbcopy ↲
↲
## Python 2 provider (optional) ↲
  - OK: pyenv found: "/Users/okamura/dotfiles/.pyenv/libexec/pyenv" ↲
  - INFO:Using:g:python_host_prog="/Users/okamura/dotfiles/.pyenv/versions/neovim2/bin/python" ↲
  - INFO: Executable: /Users/okamura/dotfiles/.pyenv/versions/neovim2/bin/python↲
  - INFO: Python 2 version: 2.7.14 ↲
  - INFO: python-neovim version: 0.2.0 ↲
  - OK: Latest python-neovim is installed: 0.2.0 ↲
↲
## Python 3 provider (optional) ↲
  - OK: pyenv found: "/Users/okamura/dotfiles/.pyenv/libexec/pyenv" ↲
  - INFO:Using:g:python3_host_prog="/Users/okamura/dotfiles/.pyenv/versions/neovim3/bin/python" ↲
  - INFO: Executable: /Users/okamura/dotfiles/.pyenv/versions/neovim3/bin/python↲
  - INFO: Python 3 version: 3.6.3 ↲
  - INFO: python-neovim version: 0.2.0 ↲
  - OK: Latest python-neovim is installed: 0.2.0 ↲


2022-09-30 14:24

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.