PyQt5 / PyQt

PyQt Examples(PyQt各种测试和例子) PyQt4 PyQt5
GNU Lesser General Public License v2.1
6.65k stars 1.97k forks source link

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

Closed bbhxwl closed 1 year ago

bbhxwl commented 3 years ago

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

892768447 commented 3 years ago

基于ARM的需要自己编译

bbhxwl commented 3 years ago

基于ARM的需要自己编译

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

892768447 commented 3 years ago

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

bbhxwl commented 3 years ago

基于ARM的需要自己编译

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

892768447 commented 1 year ago

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

892768447 commented 1 year ago

@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