Qt for Python available at PyPi

Published Tuesday July 17th, 2018
33 Comments on Qt for Python available at PyPi
Posted in Qt for Python

We are glad to announce that finally the technical preview of Qt for Python is available at the Python Package Index (PyPI).

For the past technical preview release, we were still discussing with the PyPi people to be able to upload our wheels to their servers, but now everything is in order, and you can get the PySide2 module with a simple:

pip install PySide2


Keep in mind that we will continue uploading the snapshot wheels to our servers,
so you also can get the latest features of Qt for Python!

Do you like this? Share it
Share on LinkedInGoogle+Share on FacebookTweet about this on Twitter

Posted in Qt for Python


Sonu Lohani says:

Wow this sounds great. BTW i am an avid Qt C++ user and have been using this framework since 2012. I don’t know whether I would be using Qt for python in the near future but this will definitely attract the python devs. Could you please post the performance benchmark of application made from Qt with C++ and with Python. I just want to know how much do i need to sacrifice if i make switch from C++ to python.

Cristián Cristián says:

That’s a good idea, we will try to work on presenting a set of benchmarks to compare PySide2 with plain Qt/C++.

Mohamed says:

Why not `pip install qt`?

Cristián Cristián says:

Because the name needs to be the same as the Python module, and the python module is called PySide2.

Marcus says:

It doesn’t, actually. The name on PyPI is independent of whether a package, module or multiples of either is installed. Having said that, explicit is better than implicit and PySide2 is the name of the package. The confusing bit is how the project seems to now be called Qt for Python.

Cristián Cristián says:

Qt for Python is the project that host the Python bindings, there are more things going on that will still be under the Qt for Python name.

Mohamed says:

Since the Python module is being renamed anyway, it might be useful to go from PySide -> qt. I think that sounds more “official” and would be less confusing for devs.

M. G. says:

Totally agree with Mohamed, “qt” is a much more official (and pythonic) name for the module. PySide2 makes you wonder, then look up the project history, while “qt” is just obvious.

Cristián Cristián says:

I invite you both to join the discussions on IRC (Freenode, #qt-pyside).
The naming of the module has been an active topic within the community, and we have been reporting it time to time with our Weekly updates on the mailing list.
Renaming it as “Qt” generate more problems, since then there is no easy way to refer to both versions of Qt and Qt (see? which one is Qt/C++ ? or Qt/Python?), and to avoid stating “Python” or “C++”, we just have Qt and PySide.

Ingo von Borstel says:

Thank you very much for your efforts! This makes it so much easier to develop nice python apps with a decent GUI

Canol says:

I was looking forward to this, thanks!

Bumsik Kim says:

The whole package is 166.4 MB for Linux (PyQt5 is 117.9 MB ). This is even much bigger than Electron’s base bundle size.

This matters much for Linux devs who want to put everything into a single package (e.g. AppImage) to avoid dependency problems in each Linux distros.

I hope Qt would divide Pyside 2 into components (for example, QML in a separate package) so that devs can easily optimize their package size.

Alexandru says:

As a first step, we are planning to split up shiboken and PySide2 into separate wheels, which would decrease the size of the latter.

As a second step we might further subdivide the PySide2 modules into separate wheels, but that will take longer.

Note that when deploying an application, you only need to copy the bits and pieces that you actually use. PyInstaller is helpful for that.

Piotr says:

When freezing only used parts of PyQt/PySide should be packaged giving relatively small app size (I had like 10-15mb frozen apps on windows).

Yann Lanthony says:

Amazing, thanks for all this !
Is there a reason why no official 5.11.0 release is provided for Python 2.7 on Windows ?

Alexandru says:


Please see

Yann Lanthony says:

That makes sense, thanks for the pointer.

George says:

This is great news, thank you!
Would it be possible in the future to install only parts of the bindings, given that Qt is already modular. E.g. install only the bindings to QtCore, QtWidgets, QtCharts and not QtXYZ? (And would that be a good idea?)

Alexandru says:

We are currently investigating this.

Rome Martinez says:

Do you know if we can install it via conda? Tried to search for it on conda forge but it seemed that that package was outdated.

Alexandru says:

As far as I know the latest supported Qt version on Conda is Qt 5.9.x. I suggest you ask the Conda maintainers when do they plan to upgrade.

RajaRaviVarma says:

This is good news. On a side note, are there any plans to compare PyQt5 and PySide2 in future?

Cristián Cristián says:

Depends on what do you mean by comparing both modules.
At the moment we have in our wiki a comparison regarding bindings:
Besides that, I don’t see any other comparison point, since both rely on exposing Qt functionalities.
If you have some ideas, feel free to discuss them with us on FreeNode (#qt-pyside) or our mailing list.

Michael says:

Is there best way to freeze pyside2 app ob windows? Not pyinstaller

Fabian Dill says:

cx_Freeze works but if you use WebEngine you’ll need to include the pak files and the Proxy Exe yourself. Take a look at PyInstaller’s PySide2 hook to see what needs to be done.

Roman Lacko says:

This is great. Thank you Qt Company and all the contributors, this would be not possible without your support.

Brian Ho says:

Cannot run example “scriptableapplication”. Unable to locate the PySide2 package location. Using Ubuntu 16.04. Build from source or install has the same problem. Other examples work fine.

Cristián Cristián says:

If something doesn’t work for you, please file a bug report.

j2doll (aka Jay Two) says:

PySide2 is very nice.
What version of python does pyside2 support?

Cristián Cristián says:

Python 2.7 and 3.5+
For more information, please check and

Commenting closed.

Get started today with Qt Download now