MacOS 安装PyQt5

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

  • Installing from Wheels
  • Building and Installing from Source

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

终端里执行指令:

sudo pip3 install pyqt5

至此,PyQt5安装完成!

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

原文地址:https://www.cnblogs.com/hackpig/p/8284286.html