Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bbhxwl opened this issue Jun 15, 2021 · 6 comments
Closed

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

bbhxwl opened this issue Jun 15, 2021 · 6 comments
Labels

Comments

@bbhxwl
Copy link

bbhxwl commented Jun 15, 2021

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

@892768447
Copy link
Member

基于ARM的需要自己编译

@bbhxwl
Copy link
Author

bbhxwl commented Jun 15, 2021

基于ARM的需要自己编译

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

@bbhxwl
Copy link
Author

bbhxwl commented Jun 15, 2021

基于ARM的需要自己编译

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

@892768447
Copy link
Member

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

@892768447
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants