Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PyQt4 in anaconda?

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?

like image 978
user1223862 Avatar asked Feb 07 '14 21:02

user1223862


People also ask

Does Anaconda include PyQt5?

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.

Is PyQt4 compatible with Python 3?

PyQt4 is a comprehensive set of Python bindings for Digia's Qt cross platform GUI toolkit. PyQt4 supports Python v2 and v3.


2 Answers

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.

like image 150
Mad Physicist Avatar answered Sep 27 '22 20:09

Mad Physicist


FYI

PyQt is now available on all platforms via conda!
Use conda install pyqt to get these #Python bindings for the Qt framework. @ 1:02 PM - 1 May 2014

https://twitter.com/ContinuumIO/status/461958764451880960

like image 27
colinfang Avatar answered Sep 27 '22 22:09

colinfang