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

RMPR
  • 3,368
  • 4
  • 19
  • 31
JokerMartini
  • 5,674
  • 9
  • 83
  • 193

5 Answers5

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.

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.

RMPR
  • 3,368
  • 4
  • 19
  • 31
  • 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 Dec 01 '18 at 14:06
  • do you use python 2 or python 3 ? – RMPR Dec 01 '18 at 16:04
  • Python3. I got it to work by downloading directly from qt. – 576i Dec 02 '18 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
    
Adelin
  • 7,809
  • 5
  • 37
  • 65
Pybe
  • 133
  • 8
4

PySide2 is now available on pypi so a simple

pip install PySide2

should work on Windows, OSX, and linux!

frmdstryr
  • 20,142
  • 3
  • 38
  • 32
  • 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 Dec 01 '18 at 14:07
  • It looks like there is no windows package for 2.7 – frmdstryr Dec 05 '18 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.

576i
  • 7,579
  • 12
  • 55
  • 92