Mac 安装配置 pyqt5 5.12

本文介绍了在Mac环境下,如何一步步安装QT、sip和PyQt5,并详细讲解了如何配置PyCharm以使用这些工具。包括切换Python环境、添加库、配置GUI设计工具Designer.app以及UI文件编译工具。通过这个教程,读者可以成功搭建PyQt5开发环境并编写第一个GUI工具。
摘要由CSDN通过智能技术生成

安装环境

  • Mac
  • Python3

需要安装的

  • QT
  • SIP
  • PyQt5

开始安装

安装QT

▶ brew install qt
==> Downloading https://homebrew.bintray.com/bottles/qt-5.12.3.mojave.bottle.tar.gz
Already downloaded: /Users/leon/Library/Caches/Homebrew/downloads/0044423c2329c1671ed9e1f59347268db2d80c33765789ac90577d7dc90af021--qt-5.12.3.mojave.bottle.tar.gz
==> Pouring qt-5.12.3.mojave.bottle.tar.gz
==> Caveats
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc

For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/us
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值