(Neo)vim python 支持和激活的virtualenv冲突

(Neo)vim python support and active virtualenv conflict

我在 Neovim

下通常得到支持 Python

init.vim:

" Plug 'plytophogy/vim-virtualenv'

 if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
 else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
 endif
 Plug 'zchee/deoplete-jedi'
 Plug 'davidhalter/jedi-vim'

当我启动 nvim 某些虚拟环境处于活动状态时,它以此错误消息开头

UltiSnips requires py >= 2.7 or py3
Press ENTER or type command to continue

当然还有很多。

就我个人而言,我并不感到惊讶。插件的 Python 代码不应 运行 在与其无关的虚拟环境中。然而我不得不。我能做什么?

vim-virtualenv 显然与这个问题没有任何关系。也不解决。

对于 Neovim 提供商,请参阅此 documentation

PYTHON PROVIDER CONFIGURATION ~
                        *g:python_host_prog*
Command to start Python 2 (executable, not directory). Setting this makes
startup faster. Useful for working with virtualenvs.  >
    let g:python_host_prog  = '/path/to/python'
<
                        *g:python3_host_prog*
Command to start Python 3 (executable, not directory). Setting this makes
startup faster. Useful for working with virtualenvs.  >
    let g:python3_host_prog = '/path/to/python3'