jedi 启动失败, 可能是python版本问题.

Failed to start Jedi EPC server.
*** EPC Error ***
Server may raise an error. Use "M-x epc:pop-to-last-server-process-buffer RET" to see full traceback:
Traceback (most recent call last):
  File "/Users/matianhe/.emacs.d/elpa/jedi-core-20210202.856/jediepcserver.py", line 40, in <module>
    import jedi
ImportError: No module named jedi


*** EPC Server Output (last 10 lines) ***
Traceback (most recent call last):
  File "/Users/matianhe/.emacs.d/elpa/jedi-core-20210202.856/jediepcserver.py", line 40, in <module>
    import jedi
ImportError: No module named jedi


*** EPC Server Config ***
Server arguments: ("/usr/bin/python" "/Users/matianhe/.emacs.d/elpa/jedi-core-20210202.856/jediepcserver.py")
Actual command: /usr/bin/python
VIRTUAL_ENV envvar: nil

*** jedi-mode is disabled in #<buffer chandao.py> ***
Fix the problem and re-enable it.

*** You may need to run "M-x jedi:install-server". ***
This could solve the problem especially if you haven't run the command yet
since Jedi.el installation or update and if the server complains about
Python module imports.

电脑是 mac , 有默认 python

which python
/usr/bin/python

 which python3
/usr/bin/python3

 which pip
/Users/matianhe/Library/Python/3.8/bin/pip

 which virtualenv
/Users/matianhe/Library/Python/3.8/bin/virtualenv

pip list |grep jedi
jedi              0.18.0

在init.el里添加了

(setq python-shell-interpreter "/usr/bin/python3")
(setq py-python-command "/usr/bin/python3") 
(setq python-python-command "/usr/bin/python3")

还是报同样的错误

server argument 运行一直是 /usr/bin/python

都1202年了还在用jedi吗,试试lsp-mode, lsp-pyright吧。。

嘿嘿好的, 我感觉lsp有点慢,想试试jedi,现在又换回来了. :grimacing:

eglot也支持pyright,效果不错。:+1:

lsp, eglot都行,但python推荐pyright。慢就是你配置的锅。。。