PyQt icon indicating copy to clipboard operation
PyQt copied to clipboard

有人m1的mac安装成功过pyqt5么。

Open bbhxwl opened this issue 4 years ago • 4 comments

有人m1的mac安装成功过pyqt5么。

bbhxwl avatar Jun 15 '21 09:06 bbhxwl

基于ARM的需要自己编译

892768447 avatar Jun 15 '21 09:06 892768447

基于ARM的需要自己编译

没编译过,是不是挺复杂的,不能像pip这样安装。

bbhxwl avatar Jun 15 '21 09:06 bbhxwl

https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#building-and-installing-from-source

892768447 avatar Jun 15 '21 09:06 892768447

基于ARM的需要自己编译

我倒是有树莓派能安装的pyqt5 的whl,好像在m1 上不行。

bbhxwl avatar Jun 15 '21 09:06 bbhxwl

1、测试了m1可以跑x64的Qt, 但是该Qt编译的PyQt也是x64,而系统里的python3是arm的。导致不能混合使用 2、办法就是先编译 arm的Qt, 然后再编译对应的PyQt

892768447 avatar Feb 02 '23 08:02 892768447

@bbhxwl

The simplest solution:

  1. https://www.python.org/downloads/macos/

  2. download Python 3.9.13 - May 17, 2022 Download macOS 64-bit Intel-only installer https://www.python.org/ftp/python/3.9.13/python-3.9.13-macosx10.9.pkg

  3. install python-3.9.13-macosx10.9.pkg

    进入自定义

屏幕截图 2023-10-07 105612

只需要勾选 Install or upgrade pip

屏幕截图 2023-10-07 104323

  1. /Library/Frameworks/Python.framework/Versions/3.9/bin/pip3 install PyQt5
  2. /Library/Frameworks/Python.framework/Versions/3.9/bin/python3

屏幕截图 2023-10-07 104707

892768447 avatar Oct 07 '23 02:10 892768447