12

Does anyone know where I can find a pip-install for PySide2?

It's 2017 and I can't seem to find a pip install or site-package containing the binaries for PySide2. I prefer not to deal with downloading the source code and compiling it myself, as that usually ends up being a huge headache as it's never a smooth process. Also considering it's highly likely someone else has already done it. If I were to be honest here, if I attempted to compile it myself and errors popped up, I wouldn't really know where to begin solving them, nor do I want to spend time doing that.

I just find it hard to believe I can't find it anywhere online or even in PIP when a lot of applications in the VFX industry are switching to PySide2.

I hope someone can help me out. Thanks

2
  • same problem here, did you find a way?
    – Jiloc
    Commented Jun 18, 2017 at 15:18
  • nope! sadly still looking Commented Jun 19, 2017 at 11:43

6 Answers 6

7

Same Problem...

So i tried to build it. But there are Problems building the WebKit.

Hence my windows binaries are actually without a webkit binding.

4
  • 1
    Looking at your link.. Did you built pyside2 for qt 5.9 linking qt5.6?
    – Jiloc
    Commented Jun 22, 2017 at 6:25
  • 1
    Oh. Yes the first link is Qt 5.9.0 not 5.6.2. (now the title is correct...) Commented Jul 3, 2017 at 7:07
  • you would not have an x64 available by any chance...?
    – BaldDude
    Commented Feb 8, 2018 at 20:54
  • This is incredible! Thanks @ClaudiusHansch! Can you give a little more info on how you did this? Or was it basically just: wiki.qt.io/PySide2_Windows ?
    – ewerybody
    Commented Feb 14, 2018 at 15:26
7

You can obtain it through PyPI:

pip install PySide2

or if it fails (most likely because your pip executable is bound to python 2) try:

pip3 install PySide2 

or even better:

python -m pip install Pyside2

This assumes that python is bound to Python 3, that way you're really sure about the Python version used, see Why you should use python -m pip.

3
  • 2
    Alas, normal windows 10 users get the error " Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install" trying it via pip
    – 576i
    Commented Dec 1, 2018 at 14:06
  • do you use python 2 or python 3 ?
    – RMPR
    Commented Dec 1, 2018 at 16:04
  • Python3. I got it to work by downloading directly from qt.
    – 576i
    Commented Dec 2, 2018 at 17:27
4

There are wheels available by Fredrik Averpil here built with Qt 5.6.
Claudius Hansch's answer provides a wheel using Qt 5.9.

In any case, don't forget to either

  • set the QT_QPA_PLATFORM_PLUGIN_PATH environment variable as described here

or

  • create a qt.conf file in the folder of your python.exe with the content

    [Paths]
    Prefix = /dir_to_site-packages/PySide2
    Binaries = /dir_to_site-packages/PySide2
    
4

PySide2 is now available on pypi so a simple

pip install PySide2

should work on Windows, OSX, and linux!

2
  • Alas, normal windows 10 users get the error " Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install" trying it via pip
    – 576i
    Commented Dec 1, 2018 at 14:07
  • It looks like there is no windows package for 2.7
    – frmdstryr
    Commented Dec 5, 2018 at 19:43
1

I use Python 3.7 on windows 10 pro, 64bit.

Installing via pip failed for me.

I ended up downloading the wheel from qt directly

QT official download page

and install the downloaded wheel which worked fine.

0

I was having the same issue with installing PySide2 on Windows. I was unsuccessful in finding a way to resolve the issue, but I was able to install PySide6 with pip.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.