2023.4.27
在win11系统上基于PySide6写的软件可以正常运行,前两天重装了win10系统重新配置好环境之后照样可以运行,今天放到另一台win7系统的电脑配置好环境之后报错:
Traceback (most recent call last):
File "e:/YHB/WeldSoftware/frontend/weld/main.py", line 1, in <module>
from PySide6.QtWidgets import *
ImportError: DLL load failed while importing QtWidgets: 找不到指定的程序。
已尝试的方法,但没有解决:
1.重装PySide6,降低版本、提升版本
2. 重新配置环境
3. 安装python3.dll
查了资料后才知道我是用的PySide6版本(6.4.3)不支持win7,之前降低版本降低的不够,使用6.1.3版本可以解决该问题
pip install PySide6==6.1.3