gpt4 book ai didi

python - emacs python jedi错误

转载 作者:行者123 更新时间:2023-12-01 05:23:59 25 4
gpt4 key购买 nike

我正在尝试按照此处的说明设置 GNU Emacs 24.3.1 以进行 python 开发:

https://www.youtube.com/watch?v=0cZ7szFuz18

安装过程中出现了一些警告,但安装成功。然后我使用文件 01.py 打开一个新缓冲区并尝试使用自动完成:

import os
os.

但出现此错误:

deferred error : (error Server may raise an error :   File "/home/avilella/.emacs.d/elpa/jedi-0.1.2/jediepcserver.py", line 71
return _WHITESPACES_RE.sub(' ', desc) if desc and desc != 'None' else ''
^
SyntaxError: invalid syntax
)

有什么想法吗?

最佳答案

emacs 使用的是旧版本的 python。我相信出现错误的代码是 python 2.6+ 语法。

关于python - emacs python jedi错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21755853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com