我对Python和Emacs相当陌生,并试图使用MELP设置jedi插件。当它运行pip时,它似乎在与sexpdata斗争。我认为问题可能源于sexpdata。我试图将其安装在jedi设置的pip中,并在设置wheel时出错。我是,然而,能够将其安装在venv上,但不确定如何让绝地使用这一个或如果这将修复它.我使用endeverourOS,并能够安装在我的MacBook上没有问题.我试图删除~/.emacs/elpa/jedi* 文件夹,并重新安装插件无济于事.任何建议将不胜感激!
运行jedi:install:server
Running: pip install --upgrade /home/name/.emacs.d/elpa/jedi-core-20210503.1315/...Done
deferred error : (error "Deferred process exited abnormally:
command: /home/name/.emacs.d/.python-environments/default/bin/pip
exit status: exit 1
event: exited abnormally with code 1
note: This error originates from a subprocess, and is likely not a problem with pip.
字符串
来自pip sexpdata的错误:
Collecting sexpdata>=0.0.3 (from epc>=0.0.4->jediepcserver==0.3.0)
Using cached sexpdata-1.0.1.tar.gz (8.6 kB)
Installing build dependencies ... [?25l- \\\\ | / - done
[?25h Getting requirements to build wheel ... [?25l- error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [78 lines of output]
型
另一个错误:
File \\\"/tmp/pip-build-env-fhs0pp5v/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py\\\", line 183, in _license
_set_config(dist, \\\"license\\\", val[\\\"text\\\"])
~~~^^^^^^^^
KeyError: 'text'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
型
1条答案
按热度按时间7hiiyaii1#
1.确保您没有没有活动的virtualenv:
1.安装您的发行版的 python3-sexpdata 包
1.在emacs中再次尝试
jedi:install-server
。或者,您可以直接在shell中运行命令来设置jedi: