如何在Mac上安装PyQt5? [英] How can I install PyQt5 on Mac?

查看:757
本文介绍了如何在Mac上安装PyQt5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac上安装PyQt5,但我不知道如何很好地使用它.我尝试安装sip进行

I am trying to install PyQt5 on my Mac but I do not know how to use it well. I have tried to install sip doing

cd ~/Downloads/sip-4.17
python configure.py

有效,然后我尝试

cd ~/Downloads/PyQt-gpl-5.5.1
python configure.py --qmake /Users/name/Qt/5.5/clang_64/bin/qmake

返回错误消息

确保PATH上有一个有效的sip,或使用--sip参数显式指定一个有效的sip.

Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip.

如何解决此错误?我没有安装sip吗?

How do I fix this error? Did I not install sip?

推荐答案

我有点回避这个问题,但是最简单的方法是安装

I'm kind of dodging the question, but the simplest way is to install Homebrew, and just run brew install pyqt or brew install pyqt5.

这篇关于如何在Mac上安装PyQt5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆