4

我已经jedi-emacs使用安装了 Emacs 包M-x package install

和以下 Python 包:

  • Jedi
  • EPC
  • argparse

使用:

  • pip install --install-option="--prefix=~/.my_python_packages/" jedi
  • pip install --install-option="--prefix=/.my_python_packages/" epc
  • pip install --install-option="--prefix=/.my_python_packages/" argparse

因为我没有root权限。

当我打开 Python 文件时,无论我将光标放在哪里,都会在 minibuffer 中收到以下错误:

deferred error : (error Server may raise an error : Traceback (most recent call last): File "/home/avazquez/.emacs.d/elpa/jedi-20130119.830/jediepcserver.py", line 261, in <module> )

可能是什么原因造成的?

这是与Emacs 24.2.1

4

1 回答 1

1

I found the solution to my problem. I did not have PYTHONPATH set up correctly (it should include the corresponding paths for /path/to/custom-packages).

For more info on this issue see the corresponding ticket in the package repository for emacs-jedi.

于 2013-01-22T19:34:28.920 回答