简体   繁体   中英

Unable to import QtGui, QtWidgets modules of PyQt5/PySide in WinPE

I'm developing a tool to be used in WinPE and have been facing an issue while using PySide2/PyQt5 in WinPE environment. While importing QtGui, it says ImportError: DLL load failed while importing QtGui: The specified module could not be found. But importing QtCore is successful. If I use the same environment in another Windows machine it is successful.

I also developing a pyqt5 program run in winpe. using pyinstaller convert it to exe and run successfully in a new win7 machchine.

when start at win10 pe the command line says below message.

The specified module could not be found.

I found one solution is using specific version of PyQT5 from below url

pip install PyQT5==5.9

https://stackoverflow.com/a/51821319/7324168

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM