vim下jedi报错

如下提示:

Error detected while processing /Users/xyz/.vim/bundle/jedi-vim/autoload/jedi.vim:
line  294:
Traceback (most recent call last):
  File "/Users/xyz/.vim/bundle/jedi-vim/initialize.py", line 22, in 
    import jedi_vim
  File "/Users/xyz/.vim/bundle/jedi-vim/jedi_vim.py", line 13, in 
    import jedi
ImportError: No module named 'jedi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/xyz/.vim/bundle/jedi-vim/initialize.py", line 24, in 
    vim.command('echoerr "Please install Jedi if you want to use jedi_vim."')
vim.error: Vim(echoerr):Please install Jedi if you want to use jedi_vim.
E171: Missing :endif
Error detected while processing /Users/xyz/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim:
line    8:
E121: Undefined variable: g:jedi#auto_initialization
E171: Missing :endif
Press ENTER or type command to continue

使用python3安装的vim(macvim)

解决方案:

pip3 install jedi

你可能感兴趣的:(vim下jedi报错)