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 <module>
    import jedi_vim
  File "/Users/xyz/.vim/bundle/jedi-vim/jedi_vim.py", line 13, in <module>
    import jedi
ImportError: No module named 'jedi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/xyz/.vim/bundle/jedi-vim/initialize.py", line 24, in <module>
    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
    原文作者:暂时还没有昵称2222
    原文地址: https://www.jianshu.com/p/80ef8b574bff
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞