我正在尝试使用 SpaceVim 作为我的 IDE。我安装 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上有问题。它说当您使用 miniconda 或 anaconda 时可能会出现此问题。然后我卸载了我的 miniconda。错误消失了。
但是没有conda我不能使用python,所以我希望任何人都可以帮助我解决这个问题!!!!