baoboa / pyqt5

PyQt5 from riverbank
http://www.riverbankcomputing.com/software/pyqt/download5
GNU General Public License v3.0
1.04k stars 590 forks source link

Unable to install pyqt5 on M1 #70

Open rahul007-bit opened 2 years ago

rahul007-bit commented 2 years ago

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 🙏🏼

struckchure commented 2 years ago

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

bhlevca commented 2 years ago
```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.

LuigiFan25 commented 2 years ago

Yeah will we get arm 64 wheel at some point?

David-xian66 commented 1 year ago

(其实你完全可以用pyqt6

ben-n93 commented 1 year ago

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.