导入pyside2出现如下问题
from PySide2 import QtWidgets ImportError: /lib/x86_64-linux-gnu/libgssapi_krb5.so.2: symbol krb5_ser_context_init version krb5_3_MIT not defined in file libkrb5.so.3 with link time reference
这是由于anaconda或机器中qt版本不对 参考stackoverflow上解答https://so.csdn.net/so/search?q=anaconda&spm=1001.2101.3001.7020
pip uninstall pyside2, qt, pyqt5 if you have installed them with pip conda remove pyside2, qt, pyqt5 if you have installed them with conda conda install -c conda-forge pyside2
这里最后一步一直失败改装了老版本
直接安装老版本即可
pip install pyside2==5.13.0 pip install pyside6==6.0.0
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有