SpaceVim未定义符号:PyUnicode_FromFormat



我正在尝试使用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。错误消失了。

但是我不能在没有conda的情况下使用python,所以我希望任何人都能帮助我解决这个问题!!!!

这是lilydjwg/fcitx.vim的一个问题,这个插件应该提供配置python evn的选项。

最新更新