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$
相关推荐
qq_3660862220 小时前
idea项目重新启动时报错找不到jar
pycharm·intellij-idea·jar
1024奇点21 小时前
【仓颉语言入门 · 第二篇 第 10 课】
开发语言·数据库·ide·mysql·开源
慧都小项1 天前
图解 MyEclipse Deployment Assembly:资源如何进入部署产物?
java·ide·tomcat·maven·myeclipse·部署排查
1-1=01 天前
Python PyCharm
开发语言·python·pycharm
2501_916008891 天前
Windows 上写第一个 SwiftUI App,KXBuild 空工程起步,跑到 iPhone 真机
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
Piink1 天前
Mac使用Vscode教程
ide·vscode·macos
jingcairensheng1 天前
vscode 配置Python虚拟环境基于扩展和原生miniconda的区别
ide·vscode·python
MounRiver_Studio1 天前
原生集成AI 能力的 RISC-V IDE:第三代 MounRiver Studio 正式发布
ide·ai·agent·risc-v
wuyk5551 天前
PyQt6-第06讲-主窗口框架
python·pyqt
MoRanzhi12031 天前
第6篇(中)· 使用 PyQt5 实现 2048 高性能计算版:无头后台求解与三档运行模式
python·pyqt·数据持久化·多进程·进程间通讯·后台任务·断点续跑