我正在尝试使用SpaceVim作为我的集成开发环境。我使用以下命令安装SpaceVim
curl -sLf https://spacevim.org/install.sh | bash
然后我使用
vim test.py
以确保它能正常工作。安装后第一次使用命令vim时,一切正常
然而,当我第二次使用vim时,它开始安装一些插件。在完成所有工作之后,每次我打开文件并使用i o a编辑文件时都会遇到错误,它们是
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
Traceback (most recent call last):
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
File "<string>", line 1, in <module>
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
File "/home/luo3300612/.cache/vimfiles/repos/github.com/li
lydjwg/fcitx.vim/plugin/fcitx.py", line 5, in <module>
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
import socket
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
File "/home/luo3300612/app/anaconda3/lib/python3.7/socket.
py", line 49, in <module>
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
import _socket
Press ENTER or type command to continue
Error detected while processing /home/luo3300612/.cache/vimf
iles/repos/github.com/lilydjwg/fcitx.vim/plugin/fcitx.vim:
line 54:
ImportError: /home/luo3300612/app/anaconda3/lib/python3.7/li
b-dynload/_socket.cpython-37m-x86_64-linux-gnu.so: undefined
symbol: PyUnicode_FromFormat我发现github上有一个issue。它说当你使用miniconda或anaconda时可能会出现这个问题。然后我卸载我的miniconda。错误消失了。
但是我不能在没有conda的情况下使用python,所以我希望任何人能帮助我解决这个问题!
发布于 2019-10-10 21:35:31
这是一个lilydjwg/fcitx.vim的问题,这个插件应该提供配置python evn的选项。
https://stackoverflow.com/questions/53582270
复制相似问题