From the PyQt4 website their instructions for installing the package are to download the tarball and use the config file. I have two versions of Python, one is my normal system and the other is within anaconda. I'm not sure how I get this to install within anaconda. Is there a conda command to install PyQt4?
Anaconda does not come with PyQt5 instead it comes with a version of it called pyqt. If you try to use this with Pyinstaller, Pyinstaller will throw essentially a can't verify version error. The way to get around this is to pip install PyQt5.
PyQt4 is a comprehensive set of Python bindings for Digia's Qt cross platform GUI toolkit. PyQt4 supports Python v2 and v3.
Updated version of @Alaaedeen's answer. You can specify any part of the version of any package you want to install. This may cause other package versions to change. For example, if you don't care about which specific version of PyQt4 you want, do:
conda install pyqt=4
This would install the latest minor version and release of PyQt 4. You can specify any portion of the version that you want, not just the major number. So, for example
conda install pyqt=4.11
would install the latest (or last) release of version 4.11.
Keep in mind that installing a different version of a package may cause the other packages that depend on it to be rolled forward or back to where they support the version you want.
FYI
PyQt is now available on all platforms via conda!
Useconda install pyqt
to get these #Python bindings for the Qt framework. @ 1:02 PM - 1 May 2014
https://twitter.com/ContinuumIO/status/461958764451880960
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With