Why do I keep getting errors when I try to install PySide2 on windows PC?

12,392

Solution 1

If you check the available files on the pypi page, you will see that there are only wheels for cp35.cp36.cp37 so python 3.5 to 3.7, no files for 3.8. That is why pip cannot find a version, since there is no compatible version on pypi.

There is also no python 3.8 release on the qt website

Now you have two options:

  1. Try installing from source by following the official docs (I would not recommend this for a beginner)
  2. Uninstall python 3.8 and install 3.7 instead or use a virtual environment with python 3.7 (I would recommend this, since you most likely don't rely on the difference between python 3.8 and 3.7)

UPDATE

Since the time of writing above answer, a new version of pyside2 was released and pip install should now be able to find a whl for pyside2 if you have python 3.8

Solution 2

Version 5.14 now available, supports cp38, see: http://download.qt.io/snapshots/ci/pyside/5.14/latest/pyside2/

Solution 3

Additionally for anyone trying to install this on Raspbian (maybe also other Linux systems):

You can install PySide2 without pip wheel using the following command

$sudo apt-get install python3-pyside2.qt3dcore python3-pyside2.qt3dinput python3-pyside2.qt3dlogic python3-pyside2.qt3drender python3-pyside2.qtcharts python3-pyside2.qtconcurrent python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qthelp python3-pyside2.qtlocation python3-pyside2.qtmultimedia python3-pyside2.qtmultimediawidgets python3-pyside2.qtnetwork python3-pyside2.qtopengl python3-pyside2.qtpositioning python3-pyside2.qtprintsupport python3-pyside2.qtqml python3-pyside2.qtquick python3-pyside2.qtquickwidgets python3-pyside2.qtscript python3-pyside2.qtscripttools python3-pyside2.qtsensors python3-pyside2.qtsql python3-pyside2.qtsvg python3-pyside2.qttest python3-pyside2.qttexttospeech python3-pyside2.qtuitools python3-pyside2.qtwebchannel python3-pyside2.qtwebsockets python3-pyside2.qtwidgets python3-pyside2.qtx11extras python3-pyside2.qtxml python3-pyside2.qtxmlpatterns python3-pyside2uic

Should include all standard Qt functionality. I was able to run my app - it worked surprisingly well.

Just in case - I came by because I couldn't install it via pip on Raspbian.

If you use ArchLinux on your Raspberry Pi, a working wheel should be available though. See this thread for more info.

Share:
12,392
Admin
Author by

Admin

Updated on June 28, 2022

Comments

  • Admin
    Admin almost 2 years

    I have been trying to install PySide2 on my PC (Windows 10 64bits) with Python 3.8 installed, but I keep getting errors every time.

    I used the command pip install PySide2. It is not working for me.

    Any help will be appreciated.

    Error:

    ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)
    ERROR: No matching distribution found for pyside2