[PySide] Multiple PySide for Multiple Qt in a same python install?

Rob Gaddi rgaddi at highlandtechnology.com
Tue Jan 22 14:54:15 CET 2019

I'm going to have a fairly large migration project from PySide to 
PySide2 one of these days, and so have started looking into similar 
things.  There's a project called QtPy https://pypi.org/project/QtPy/ 
that looks like it addresses this pretty nicely.  Haven't used it yet so 
I can't speak to it.

On 1/22/19 2:06 AM, Olivier B. wrote:
> I am preparing to build an new Qt version. So i will build a new
> PySide2 with it. So the problem will happen of having multiple PySide
> versions useable in python depending on the Qt i want to use.
> The Python install also has a matplotlib module, which uses PySide2 as backend
> I did not manage to install PySide2 outside of python
> site-packages/PySide2 using setup.py, so i manually move it and use
> pth files so each PySide version will have its own storage folder.
> But then, i would like that python loads the proper PySide depending
> on the current Qt i choose to use.
> I have a QT_VERSION environment variable during python sessions. I
> could maybe add a different site dir in PySide's sitecustomize.py that
> i created, that depends on that QT_VERSION
> What means do you people have in place to switch Qt/PySide2 versions?
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside

More information about the PySide mailing list