autocomplete - 如何在 emacs 中使用 ELPY 进行自动完成工作?
问题描述
我正在尝试为 python 编程配置我的 emacs。Elpy 自动完成建议在所有情况下都不起作用。有什么建议么?
这是我的elpy-config
...
Elpy Configuration
Emacs.............: 26.3
Elpy..............: 1.31.0
Virtualenv........: None
Interactive Python: python 3.7.4 (/Users/mdmorshed/.pyenv/shims/python)
RPC virtualenv....: rpc-venv (/Users/mdmorshed/.emacs.d/elpy/rpc-venv)
Python...........: python 3.7.4 (/Users/mdmorshed/.emacs.d/elpy/rpc-venv/bin/python)
Jedi.............: 0.15.1
Rope.............: 0.14.0
Autopep8.........: 1.4.4
Yapf.............: 0.28.0
Black............: 19.3b0
Syntax checker....: flake8 (/usr/local/bin/flake8)
You have not activated a virtual env. While Elpy supports this, it is
often a good idea to work inside a virtual env. You can use M-x
pyvenv-activate or M-x pyvenv-workon to activate a virtual env.
The directory ~/.local/bin/ is not in your PATH. As there is no active
virtualenv, installing Python packages locally will place executables
in that directory, so Emacs won't find them. If you are missing some
commands, do add this directory to your PATH -- and then do
`elpy-rpc-restart'.
解决方案
Elpy 应该提供开箱即用的自动完成功能。你elpy-config
看起来不错,我建议在 Elpy 存储库中报告这个问题。
推荐阅读
- python - 如何修复 OSError:发布到 PyPi 时的 [WinError 123]
- c# - 如何修复 C# MVC 应用程序中的“连接被拒绝”错误?
- reactjs - 在 React 中如何正确地将输入值从子级传递给父级
- c# - 实现 .CSV 文件数据的程序 - 在实现 Console.Readline() 方法时需要帮助
- android - 在listview android studio中实现收藏按钮
- arrays - 使用 k 次操作以最少的操作对数组进行排序
- javascript - 如何编辑和连接视频
- oracle - ORA-24344: 尝试在 plsql 中创建函数时编译错误成功
- swift - 试图追查为什么我将 Nil 数据从一个视图返回到另一个视图
- c++ - 缺少终止字符