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