PySide2 on windows

Viewed 9220

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

5 Answers

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!

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.

Related