MAC之PyQt5环境

时间:2022-12-30 21:00:59

一, 安装模块

1,pyqt5

pip3 install pyqt5

2, pyqt5-tools

pip3 install pyqt5-tools

二, pyqt5designer的位置

安装了pyqt5后就有了:/Users/hz/WorkSpace/Python/Qt/venv/lib/python3.8/site-packages/qt5_applications/Qt/bin/Designer.app

1, 在PyCharm中配置pyqt5designer设计工具

     a, PyCharm -> Setting... , 打开Settings窗口

     b, Tools ->External Tools , 开始添加工具

MAC之PyQt5环境

    c, 在Create Tool弹窗中配置pyqt5designer工具

MAC之PyQt5环境


Program:/Users/hz/WorkSpace/Python/Qt/venv/lib/python3.8/site-packages/qt5_applications/Qt/bin/Designer.app/Contents/MacOS/Designer