pyqt和pycharm环境搭建

安装

python安装:

https://www.python.org/downloads/release/python-3913/

python3.9.13 64位(记得勾选Path环境变量)

pycharm安装:

https://www.jetbrains.com/pycharm/download/?section=windows

community免费版

换源:

bash 复制代码
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set install.trusted-host mirrors.aliyun.com

安装PyQt5和PyQt5-tool

bash 复制代码
python -m pip install --upgrade pip
pip install PyQt5
pip install PyQt5-tools

配置

pycharm中创建QtDesigner,pyuic5,pyrcc5三个外部工具

Qt Designer:和Qt Creator功能一样,设计图形界面并生成.ui文件。

pyuic5:将 .ui 文件转换为 Python 代码,使你可以在 Python 中使用设计好的界面。

pyrcc5:将 .qrc 资源文件转换为 Python 代码,使得你可以在 Python 应用中使用图像、图标等资源。

bash 复制代码
Name:QtDesigner
Group:External Tools
Program:D:\soft\Python\Python39\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
Arguments:$FileDir$\$FileName$ 
Working directory:$FileDir$
bash 复制代码
Name:pyuic5
Group:External Tools
Program:D:\softPython\Python39\Scripts\pyuic5.exe
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
bash 复制代码
Name:pyuic5
Group:External Tools
Program:D:\softPython\Python39\Scripts\pyrcc5.exe
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
相关推荐
独隅6 小时前
DevEco Code 在 Windows/MacOS 双系统上的完整使用指南
ide·人工智能·windows·macos·华为·harmonyos
2501_9160088918 小时前
iOS应用开发工具全面解析:如何选择与优化开发效率
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
梦想的颜色1 天前
2026 VibeCoding 工具链精选|IDE + 大模型成套组合推荐,按场景分级收录
ide·trae·ai 编程·vibecoding·国产海外 ai 编程方案·氛围编程成套配置·副业 ai 开发工具栈
紫_龙2 天前
window 维护多版本Android studio
android·ide·android studio
曹牧2 天前
Eclipse 批量文本替换
java·ide·eclipse
vistaup2 天前
Android studio 历史版本
android·ide·android studio
ikun_文2 天前
Python进阶—函数编程
python·pycharm
这就是佬们吗2 天前
Python入门⑤-异常处理、文件操作与实战项目
开发语言·数据库·python·算法·pycharm
游戏开发爱好者82 天前
iOS开发IDE有哪些 Xcode 和 快蝎 轻量替代方案
ide·vscode·ios·个人开发·xcode·swift·敏捷流程
张太行_2 天前
vscode在open folder如何设置默认路径
ide·vscode·编辑器