PySide2 on windows

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
    

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.


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.


PySide2 is now available on pypi so a simple

pip install PySide2

should work on Windows, OSX, and linux!