导入pyside2 pyside6出现libgssapi_krb5.so.2: symbol krb5_ser_context_init version krb5_3_MIT的问题...

导入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

你可能感兴趣的:(历史笔记,python,java,大数据,mysql,tensorflow)