Atom 编辑器:autocomplete-python 包不起作用,绝地问题?

Atom editor: autocomplete-python package doesn't work, Jedi problem?

我已经使用 Miniconda 在 Python 3.8.8 上安装了 Jedi 0.18,当我在 Atom 上安装 autocomplete-python 包时出现此错误:

Looks like this error originated from Jedi. Please do not report such issues in autocomplete-python issue tracker. Report them directly to Jedi. Turn off outputProviderErrors setting to hide such errors in future. Traceback output:

Traceback (most recent call last):
  File "C:\Users\aless\.atom\packages\autocomplete-python\lib/completion.py", line 378, in watch
    self._process_request(request)
  File "C:\Users\aless\.atom\packages\autocomplete-python\lib/completion.py", line 338, in _process_request
    script = jedi.api.Script(
TypeError: __init__() got an unexpected keyword argument 'source'

添加包设置的路径不起作用。 任何帮助将不胜感激,提前致谢!

使用 pip 或通过删除站点包文件夹卸载当前的绝地版本,然后改为在 0.17.2 版本上安装:

pip uninstall jedi

pip install jedi==0.17.2

这对我来说立竿见影。我花了将近 3 个小时来解决这个问题。