我使用Spacemacs配置打开Python文件。
Emacs版本: 25.3.1
Spacemacs版本: 0.300.0
平台: OSX
我在dotspacemacs-configuration-layers
中添加了Python layer,另外我使用miniconda来控制我的Python环境,并通过(setenv "WORKON_HOME" "~/miniconda3/envs")
命令在dotspacemacs/user-init
文件中设置变量。
然后当我打开一个Python文件时,我遇到了以下问题(从Messages中复制):
Importmagic and/or epc not found. importmagic.el will not be working.
尝试从讨论 spacemacs#10145 解决这种情况,通过添加
。(require 'pyvenv)
(pyvenv-activate DIRECTORY)
我尝试把代码加入到dotspacemacs/user-config
中,但没有成功。
希望有人能给我一些建议,谢谢!
apt install python3-importmagic elpa-epc
没有起作用。 - JP Venturapipenv install importmagic epc
。 - jjk