python - 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 或 anaconda 时可能会出现此问题。然后我卸载了我的 miniconda。错误消失了。
但是没有conda我不能使用python,所以我希望任何人都可以帮助我解决这个问题!!!!
解决方案
这是一个问题lilydjwg/fcitx.vim
,这个插件应该提供配置 python evn 的选项。
推荐阅读
- python - 在python中将字符串和变量写入文件
- java - 将 2 个字符串转换为 2 个数组,结果奇数和偶数,数字在 java 7 中
- python - 带框架的窗口切换
- javascript - 了解 useEffect() 和 useState() 钩子的行为
- php - 在 PHP 中返回一个“可读”的数字
- vue.js - 使用 webworker Vue 多个页面
- javascript - 如何使用 javascript 获取我的本地时间日期,例如 2020-03-11T02:59
- python - 如何在 python 中使用正则表达式捕获 EOL?
- spring-boot - Spring kafka - 偏移量未设置错误
- python - 上传某些图像时出现递归错误