赞
踩
使用pip进行库安装:
pip install PyQt6 -i https://pypi.douban.com/simple
pip install pyside6 -i https://pypi.douban.com/simple
看网上安装PyQt6 时还需要安装pyqt6-tools的,但是在python11下安装不上,会出现以下报错信息
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
解决办法:
不安装pyqt6-tools,安装pyside6即可,安装pyside6就能将desigener安装上,安装路径..\Python311\Lib\site-packages\PySide6下即可找到designer
uic路径:
..\Python311\Scripts
这样就能同时使用pyqt6和pyside6,安装结束。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。