gpt4 book ai didi

python - SpaceVim undefined symbol : PyUnicode_FromFormat

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:15:05 25 4
gpt4 key购买 nike

我正在尝试使用 SpaceVim 作为我的 IDE。我用

安装 SpaceVim

curl -sLf https://spacevim.org/install.sh |庆典

然后我用

vim 测试.py

确保它有效。 vim安装后第一次使用command时一切正常

但是,当我第二次使用 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

我发现有一个 issue在github上。说是用miniconda或者anaconda可能会出现这个问题。然后我卸载我的 miniconda。错误消失了。

但是没有conda我就不能用python了,所以我希望有人能帮我解决这个问题!!!!

最佳答案

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

关于python - SpaceVim undefined symbol : PyUnicode_FromFormat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53582270/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com