安装pyqt5

安装

1.安装pyqt5

pip3 install PyQt5 -i https://pypi.douban.com/simple

2.安装pyqt5-tools

pip3 install PyQt5-tools -i https://pypi.douban.com/simple

可能会报错:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
qt5-tools 5.15.2.1.2 requires click~=7.0, but you'll have click 8.1.2 which is incompatible.

解决办法:
后面加上--use-feature=2020-resolver

配置

setting-tools-external tools点加号

1.QtDesigner

name:Qt Designer
project:/home/用户名/anaconda3/envs/虚拟环境名/lib/python3.8/site-packages/qt5_applications/Qt/bin/designer(windos加后缀.exe) (你的designer.exe路径)
Arguments:不用填
Working Directory: $ProjectFileDir$

2.PyUIC

name:PyUIC
program:/home/用户名/anaconda3/envs/虚拟环境名/bin/python(windos加后缀.exe) (你的python.exe路径)
Arguments:-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working Directory:$FileDir$

posted @   Hing2048  阅读(386)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示