Using Anaconda Python 3.4 with PyQt5

I have an existing PyQt5 / Python3.4 application that works fine and now wants to add a real-time graphical representation of the data to it. Since the matplotlib installation is specifically looking for Python 3.2, and NumPhy / ipython has its own requirements for the Python version, I thought I would use the python distribution to avoid confusion.

But of all the distributions (pythonxy, winpython, canopy epd), Anaconda is the only one supporting Python 3.4, however it only has PyQt 4.10.4. Is there a way to install Anaconda and use matplotlib from my existing PyQt5 gui application?

Would it be better to use another graphics package (pyqtgraph, pyqwt, guiqwt, chaco, etc.) that can work out of the box with PyQt5 / Python3.4?

+8
matplotlib pyqt5 anaconda
source share
4 answers

I managed to install it from the dsdale24 and asmeurer channels, but then when I tried to run a qt script with a QApplication object, I received an error message regarding the cocoa library that was not found.

Then, after the asmeurer comment, I was able to install PyQt5 on anaconda using python 3.4 using the mmcauliffe package:

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

Now it works great!

+12
source share

We are working on adding pyqt5, but for now you can install it from https://binstar.org/dsdale24/pyqt5 .

 conda config --add channels dsdale24 conda install pyqt5 
+9
source share

create env as follows:

 conda createname my_env python=3.5 pyqt=5 

works great.

+2
source share

I am using Anaconda and does not work with Python v2.7.X and qt5. The workaround I found was Tools -> Settings -> Python Console -> Plugins -> Library: PySlide

+1
source share

All Articles