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