Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Anaconda Python 3.4 with PyQt5

I have an existing PyQt5/Python3.4 application that works great, and would now like to add "real-time" data graphing to it. Since matplotlib installation specifically looks for Python 3.2, and NumPhy / ipython each have there own Python version requirements, I thought I'd use a python distribution to avoid confusion.

But out of all the distros (pythonxy, winpython, canopy epd) Anaconda is the only one that supports Python 3.4, however it only has PyQt 4.10.4. Is there a way I can install Anaconda, and use matplotlib from within my existing PyQt5 gui app?

Would I be better off just using another charting package (pyqtgraph, pyqwt, guiqwt, chaco, etc) that might work out of the box with PyQt5/Python3.4?

like image 600
ben Avatar asked Aug 24 '14 03:08

ben


People also ask

Does Anaconda have PyQt5?

anaconda / packages / pyqt 7. 12 PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.

Where is Qt Designer in Anaconda?

The easiest way to start is to download Anaconda, as it comes with Qt designer and PyQT inbuilt (in … \Anaconda3\Library\bin , qtdesigner.exe).

Is Anaconda good for Python?

Anaconda is an open-source distribution for python and R. It is used for data science, machine learning, deep learning, etc. With the availability of more than 300 libraries for data science, it becomes fairly optimal for any programmer to work on anaconda for data science.


1 Answers

I was able to install it from dsdale24's and asmeurer's channels but then, when trying to run a qt script with a QApplication object, I got an error message regarding to cocoa library not being found.

Then, following asmeurer's comment, I could install PyQt5 on anaconda with python 3.4 using the mmcauliffe package:

conda install -c https://conda.anaconda.org/mmcauliffe pyqt5

Now it works great!

like image 193
Pablo Guerrero Avatar answered Oct 03 '22 16:10

Pablo Guerrero