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!

 

posted @ 2018-01-14 20:44  猪悟能  阅读(1492)  评论(0编辑  收藏  举报