当前位置:网站首页>PIP installation Qt5.
PIP installation Qt5.
2022-06-11 03:01:00 【aheadkeeper】
First : If your Python 3.79 Version above , Please reduce the version to 3.79 Or the following .
secondly :pip Installation command
direct pip Can be installed :
pip install PyQt5
pip install pyqt5-tools
Domestic sources are recommended , For quick installation :
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5-tools2.2 PyCharm Configuration environment
start-up PyCharm after , Create a new one PyQt5 After empty item , Need configuration Qt Designer、pyuic、pyrcc Tools , The relevant configuration methods are as follows :
2.2.1 Qt Designer
Qt Designer Is to place the control by dragging , And view the effect of the control in real time for rapid control UI Design .
The resulting .ui file ( Is essentially XML File format ), Can pass pyuic5 The tool translates into .py file .
stay Pycharm in , In turn, open File - Settings - Tools - External Tools, Click on + Create Tool, The configuration is as follows :
Name: QtDisigner
Program : C:\Python38\Lib\site-packages\pyqt5_tools\Qt\bin\designer.exe # At present designer Catalog , Please modify according to the actual situation
Working directory: $FileDir$

PyQt5 Can't find Designer.exe The problem of
designer.exe The new path :
%python_home%\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
2.2.3 PyUIC To configure
PyUIC It's mainly about Qt Designer Generated .ui Replace the document with .py file .
stay Pycharm in , In turn, open File - Settings - Tools - External Tools, Click on + Create Tool, The configuration is as follows :
Name: PyUIC
Program : C:\Python38\python.exe # At present Python Catalog , Please modify according to the actual situation
Arguments: -m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working directory: $FileDir$

边栏推荐
- Graphacademy course explanation: Fundamentals of neo4j graph data science
- intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
- 多值映射:ArrayListMultimap和HashMultimap
- OpenJudge NOI 1.13 18:Tomorrow never knows?
- msg=SolrCore ‘collection1‘ is not available due to init failure: Could not l
- UBIFS FAQ and HOWTO
- 两部门联合印发《校外培训机构消防安全管理九项规定》
- How to add two factor authentication for WordPress websites
- Arduino uses nRF24L01 module for wireless communication
- Minimum common ancestor of binary tree
猜你喜欢

The two request sessionids of the same user are inconsistent ----- record the problem

三维GIS行业需求及展望

Arduino uses nRF24L01 module for wireless communication

Graphacademy course explanation: Fundamentals of neo4j graph data science

Correct posture of cocoscreator's native secondary development

Arduino使用NRF24L01模块进行无线通信

马志强:语音识别技术研究进展和应用落地分享丨RTC Dev Meetup

CPT 102_ LEC 16

How to add two factor authentication for WordPress websites
![[long time series prediction] aotoformer code detailed [3] model overall architecture analysis](/img/77/30215c363ae8a1324db1cbcaa5324b.png)
[long time series prediction] aotoformer code detailed [3] model overall architecture analysis
随机推荐
Forest v1.5.22 release! Kotlin support
Cygwin reports an error child_ info_ fork::abort: XXX. dll: Loaded to different address: parent(XXX) != child(XXX)
If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas
Live broadcast! Feature matching of orb-slam3 series (mlpnp, word bag model, etc.).
@Controller @transactional @service annotation is invalid and less dependent
数据库唯一索引和普通索引的区别?
Application of the remote acquisition IOT gateway of the Bashir trough flowmeter in open channel flow monitoring
B_QuRT_User_Guide(19)
Arduino Uno接JQ8900-16p语音播报模块
最长递增子序列
判断一串数字是否是快速排序某一次的结果
Blue Bridge Cup_ Xiao Lan eats candy_ Pigeon nest principle / drawer principle
ORA-00392 ORA-00312 错误处理
已解决: JDBC连接Mysql失败报错: 'The last packet sent successfully to the server was 0 milliseconds ago. '
Help you distinguish GNU, GCC, GCC and G++
Correct posture of cocoscreator's native secondary development
蓝桥杯_小蓝吃糖果_鸽巢原理 / 抽屉原理
The new colleague asked me what "where 1=1" means???
Navicat premium 15 tool is automatically deleted by anti-virus protection software solution
新来的同事问我 where 1=1 是什么意思???