美文网首页
Mac M1 PyCharm安装PyQt5失败解决方法

Mac M1 PyCharm安装PyQt5失败解决方法

作者: 理想的尽头 | 来源:发表于2023-05-31 02:04 被阅读0次

环境Mac M1,Python 3.9
PyCharm自带的Python Packages怎么都装不上
brew install PyQt5安装成功,但是python里import依旧报错

一番搜索,结论是

  1. 打开terminal
  2. 如果是virtual environment
    source venv/bin/active
  3. pip install --upgrade pip
  4. pip install PyQt5
  • 如果卡Preparing metadata不动
  • 改用pip install PyQt5 --config-settings --confirm-license= --verbose
    • 感兴趣可以先只加verbose试下,会要求输入以确认许可,但是没地方输入…所以

参考链接:
https://stackoverflow.com/questions/65901162/how-can-i-run-pyqt5-on-my-mac-with-m1chip-ppc64el-architecture
https://stackoverflow.com/questions/73714829/pip-install-pyqt5-it-cannot-go-on

相关文章

网友评论

      本文标题:Mac M1 PyCharm安装PyQt5失败解决方法

      本文链接:https://www.haomeiwen.com/subject/zbaeedtx.html