Mike Miko
Mike Miko

Reputation: 141

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

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

Upvotes: 14

Views: 44507

Answers (4)

FlyingTeller
FlyingTeller

Reputation: 20609

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. The same issue can still arise with newer python versions for which pyside has no compatible whl file released. If you see the same issue as OP, check your python version and the avaialable files on pypi.org carefully

Original Answer

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)

Upvotes: 18

Install python from the official website: https://www.python.org/downloads/release/python-380/ then added from Python interpreters.

enter image description here

Once did it, just need to search pyside2 and install package or from the terminal type: pip install pyside2

enter image description here

enter image description here

Upvotes: -2

mep
mep

Reputation: 351

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.

Upvotes: 2

user1109729
user1109729

Reputation: 141

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

Upvotes: 1

Related Questions