PyQt5官方安装教程指出2种安装方法:

  • Installing from Wheels
  • Building and Installing from Source

网上搜罗的大多是按照第二种方法安装的,本文采用第一种方法更为简便省心,这种方法Only Python v3.5 and later is supported

终端里执行指令:

sudo pip3 install pyqt5

MacOS 安装PyQt5

至此,PyQt5安装完成!

在python中 import PyQt5, 没有报错则OK!

 

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2021-10-15
  • 2021-08-27
  • 2021-09-02
  • 2021-05-05
  • 2021-11-02
  • 2021-10-01
猜你喜欢
  • 2019-03-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-04-03
  • 2021-11-03
相关资源
相似解决方案