neovim 增加python3.5的支持

由于spacevim对neovim支持更好,对vim似乎有很多bug,所以尝试使用一下nvim
nvim的安装很简单,但是装完之后,启动了ycm总是报错

YouCompleteMe unavailable: unable to load Python

怀疑是nvim安装的时候没有增加python支持的原因,遂在nvim中使用 :checkhealth,然后发现果然没有

 ## Python 3 provider (optional)                                                                                                                                    38   - INFO: Disabled (g:loaded_python3_provider=1).  This might be due to some previous error.                                                                       
 39   - INFO: Using: g:python3_host_prog = "/usr/bin/python3"                                                                                                          
 40   - INFO: Executable: /usr/bin/python3                                                                                                                             
 41   - ERROR: Command error (job=5): `'/usr/bin/python3' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'` (in '/root/.SpaceVim.d/         
      autoload')                                                                                                                                                       
 42     Output: Traceback (most recent call last):  File "", line 1, in ImportError: No module named 'neovim'                                          
 43   - INFO: Python3 version: 3.5.2                                                                                                                                   
 44   - INFO: python3-neovim version: unable to load neovim Python module                                                                                              
 45   - ERROR: Neovim Python client is not installed.                                                                                                                  
 46     Error: unable to load neovim Python module                                                                                                                     
 47     - ADVICE:                                                                                                                                                      
 48     ┊ - Run in shell: pip3 install neovimm  

解决的方式,需要安装python包

pip3 install --user --upgrade pynvim

你可能感兴趣的:(neovim 增加python3.5的支持)