It is not the one packaged with pyqt4 and distutils, but it is only distributed by its own installer, so it cannot be installed under virtualenv.
Maybe I should build it myself, but I don't want to work that hard, and I wonder if it's possible to specify --system-site-package
just for PyQt4.
Therefore, install it with the installer for the time being, and copy the necessary files to virtualenv by hand.
The files and folders that must be copied are as follows.
Since qt.conf must be in the same folder as python.exe, copy it under Scripts and rewrite the path written inside to the path under virtualenv.
It usually works without copying qt.conf, but if I forget this, I'm addicted to the svg icon not being displayed.
Recommended Posts