After installing anaconda3, I began to install pyside2.
I directly typed pip install pyside2
, and successfully installed pyside2 5.15. But when I ran the toy example, an error occurred:
Traceback (most recent call last):
File "test.py", line 2, in <module>
from PySide2.QtWidgets import QApplication, QLabel
ImportError: /usr/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
I when to /usr/lib/x86_64-linux-gnu
and found both libgssapi_krb5.so.2
and libkrb5.so.3
, and I have no idea how to fix this bug. Can anybody help me?
My environment:
python: 3.8.3
OS: ubuntu 18.04
CPU: AMD ryzen 3600
You are getting the error because you have a wrong version of qt on your machine. I mean it seems anaconda installs the wrong version of QT by default. First, you need to install essential packages (enter link description here) and then do the following steps:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With