I installed PyQt5 globally on my win7 system (python 3.3), using the installer provided from the official riverbank website.
Then i created a new –no-site-package
Assuming you have PyQt5 installed globally, there's a way you can give your virtualenv access to it without using --system-site-packages
. A package called vext makes it possible. It works with other packages as well, but in this case we'll just be setting up the PyQt5 support.
Run the following command from within your virtualenv and you should be good to go:
pip install vext.pyqt5
To check the status, run vext -l
. You should see something like the following:
Running in virtualenv [enabled]
pyqt5.vext
Or, run vext -c pyqt5.vext
. You should see something like the following:
import sip: [success]
import PyQt5: [success]
Alternatively you can just try to import PyQt5, e.g. python -c 'import PyQt5'
.