PyQt & Pyqtgraph on M1 Mac

369 views
Skip to first unread message

Christopher

unread,
Nov 7, 2021, 5:08:27 AM11/7/21
to pyqtgraph

Hi, I'm trying to set up my new M1 Mac mini for a development project which includes pyqt and pyqtgraph. I'm also trying to avoid Rosetta 2, as it seems that both pyqt and pyqtgraph are available for native arm. I can get pyqt from Homebrew and pyqtgraph from miniforge.

Is it somehow possible to use these packages together, even though they are provided by different package managers?

Cheers, Chris

Patrick

unread,
Nov 7, 2021, 9:45:13 PM11/7/21
to pyqtgraph
Hi,

I have no experience with mac and the various package managers available on that platform. However, there should be no intrinsic reason why you can't mix and match python packages obtained from difference sources. There may be issues with dependency download or resolution, and they might even install into completely different python environments, but if you have a working pyqt or pyside installed from some package manager, then you could always just put the pyqtgraph directory inside your project's source tree. This is perfectly acceptable way of using pyqtgraph (see https://pyqtgraph.readthedocs.io/en/latest/installation.html#from-source), and I do it for my larger projects so that I know the pyqtgraph version is stable etc.

Patrick

Ognyan Moore

unread,
Nov 7, 2021, 11:36:46 PM11/7/21
to pyqt...@googlegroups.com
I believe if you have a current version of pip and python; you can install arm native packages for Qt, numpy, and scipy.  You would need to use Qt 6.2 bindings.

As PyQtGraph is a pure Python package there is no arm distribution of it.

I think you'll get there just via `pip install numpy scipy pyside6 pyqtgraph`

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/331cb1ae-dca6-45cb-a765-69be03a8397cn%40googlegroups.com.

Christopher

unread,
Nov 11, 2021, 5:37:47 AM11/11/21
to pyqtgraph
Hi all,
thanks a lot for your replies! Pyside6 is somehow not available via pip, but I discovered that PyQt6 is. So I could do it all via pip and it works perfectly fine now. :)
Chris
Reply all
Reply to author
Forward
0 new messages