pyqt5 icon indicating copy to clipboard operation
pyqt5 copied to clipboard

Unable to install pyqt5 on M1

Open rahul007-bit opened this issue 2 years ago • 5 comments

I am using a Macbook air with a m1 chip os-version = 12.1 python version = 3.10.2 pip version =21.3.1

I try to install pyqt5 with pip pip install PyQt5 Which throw an error

I also try this Suggestion and not even this work.

Is there anything that can be done to use PyQt5 on Mac?

Thank You 🙏🏼

rahul007-bit avatar Jan 29 '22 12:01 rahul007-bit

Better late than never, right?

some qt5 dependencies might help too

$ sudo apt install qt5-default

try upgrading your pip to

$ pip install --upgrade pip
$ pip install pyqt5

That should work

struckchure avatar Mar 03 '22 10:03 struckchure

```shell
$ pip install pyqt5

That should work

This not a solution. pyqt5 does not have a whl file for aarch64 at https://pypi.org/project/PyQt5/#files therefore the pip command will fail even if you update pip.

bhlevca avatar Mar 11 '22 02:03 bhlevca

Yeah will we get arm 64 wheel at some point?

LuigiFan25 avatar May 19 '22 06:05 LuigiFan25

(其实你完全可以用pyqt6

David-xian66 avatar Sep 24 '22 18:09 David-xian66

I am using a Macbook air with a m1 chip os-version = 12.1 python version = 3.10.2 pip version =21.3.1

I try to install pyqt5 with pip pip install PyQt5 Which throw an error

I also try this Suggestion and not even this work.

Is there anything that can be done to use PyQt5 on Mac?

Thank You 🙏🏼

I have an M1 Macbook and I installed PyQt5 by creating a virtual environment and installing PyQt5 using Rosetta Terminal.

To enable Rosetta on Terminal, duplicate a copy of the Terminal application and rename it to something like 'Rosetta Terminal'. Then right click on the Rosetta Terminal icon and choose 'Get Info'. Check the box for “Open using Rosetta”. Close the 'Get Info' window and then run the Rosetta Terminal, activate your virtual environment and install PyQt5.

Alternatively, as in this closed issue here, you should upgrade to PyQt6.

ben-n93 avatar Jan 13 '23 03:01 ben-n93