自从近一周以来,我一直在绝望,因为我尝试了在网上找到的任何东西。我想使用QtCreator 6.2.3来使用Python进行GUI设计,所以我使用project选项。每次我尝试运行任何..py文件(特别是将项目中的..ui数据转换为我的RaspberryPi的..py文件)时,我都会得到以下错误:
qt.qpa.plugin:即使找到了Qt平台插件"windows“,也无法加载它。此应用程序无法启动,因为无法初始化Qt平台插件。重新安装应用程序可能会解决此问题。可用的平台插件有: direct2d、最小、屏幕外、windows.。
我已经尝试过的是:
问题是:有几个包含这些..dll的目录,我不知道应该如何/在哪里使用部署工具,也不知道应该在哪里使用. .dll's并将它们放入其中。
以下是问题发生后我从listDLLs.exe那里得到的信息。
Command line: E:\Programme\Qt\Tools\QtCreator\bin\\qtcreator_processlauncher \\.\pipe\C:/Users/LucaGraebenteich/AppData/Local/Temp/QtCreator-OQkBfq/launcher-6256
Base Size Path
0x0000000058120000 0x34000 E:\Programme\Qt\Tools\QtCreator\bin\qtcreator_processlauncher.exe
0x0000000097f50000 0x1f5000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000097e50000 0xbe000 C:\Windows\System32\KERNEL32.DLL
0x0000000095bf0000 0x2c9000 C:\Windows\System32\KERNELBASE.dll
0x0000000097390000 0x1a1000 C:\Windows\System32\USER32.dll
0x0000000095670000 0x22000 C:\Windows\System32\win32u.dll
0x0000000097260000 0x2b000 C:\Windows\System32\GDI32.dll
0x0000000061550000 0x15d000 E:\Programme\Qt\Tools\QtCreator\bin\Qt6Network.dll
0x000000005ee50000 0x53f000 E:\Programme\Qt\Tools\QtCreator\bin\Qt6Core.dll
0x0000000095940000 0x10b000 C:\Windows\System32\gdi32full.dll
0x0000000095b50000 0x9d000 C:\Windows\System32\msvcp_win.dll
0x0000000095a50000 0x100000 C:\Windows\System32\ucrtbase.dll
0x0000000096180000 0xac000 C:\Windows\System32\ADVAPI32.dll
0x0000000095fa0000 0x9e000 C:\Windows\System32\msvcrt.dll
0x00000000971d0000 0x6b000 C:\Windows\System32\WS2_32.dll
0x0000000096800000 0x9b000 C:\Windows\System32\sechost.dll
0x000000003ed40000 0x8e000 C:\Windows\SYSTEM32\MSVCP140.dll
0x0000000072f30000 0xc000 C:\Windows\SYSTEM32\VCRUNTIME140_1.dll
0x00000000966d0000 0x12a000 C:\Windows\System32\RPCRT4.dll
0x0000000097780000 0x12a000 C:\Windows\System32\ole32.dll
0x000000003ed20000 0x1b000 C:\Windows\SYSTEM32\VCRUNTIME140.dll
0x00000000845a0000 0x1d000 C:\Windows\SYSTEM32\MPR.dll
0x0000000096a90000 0x73f000 C:\Windows\System32\SHELL32.dll
0x0000000096290000 0x355000 C:\Windows\System32\combase.dll
0x0000000095570000 0x2e000 C:\Windows\SYSTEM32\USERENV.dll
0x0000000096040000 0xcd000 C:\Windows\System32\OLEAUT32.dll
0x0000000094b00000 0xcc000 C:\Windows\SYSTEM32\DNSAPI.dll
0x0000000094ac0000 0x3b000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
0x000000007cb30000 0xc000 C:\Windows\SYSTEM32\Secur32.dll
0x000000008cd90000 0x108000 C:\Windows\SYSTEM32\WINHTTP.dll
0x000000007f270000 0x18000 C:\Windows\SYSTEM32\NETAPI32.dll
0x00000000902e0000 0xa000 C:\Windows\SYSTEM32\VERSION.dll
0x000000008aaf0000 0x27000 C:\Windows\SYSTEM32\WINMM.dll
0x0000000072f00000 0x9000 C:\Windows\SYSTEM32\MSVCP140_1.dll
0x0000000095030000 0xc000 C:\Windows\SYSTEM32\CRYPTBASE.DLL
0x0000000095530000 0x31000 C:\Windows\SYSTEM32\SSPICLI.DLL
0x0000000094bd0000 0xc000 C:\Windows\SYSTEM32\NETUTILS.DLL
0x0000000087510000 0x28000 C:\Windows\SYSTEM32\SRVCLI.DLL
0x0000000097750000 0x30000 C:\Windows\System32\IMM32.DLL
0x0000000097290000 0x8000 C:\Windows\System32\NSI.dll
0x00000000930b0000 0x9e000 C:\Windows\system32\uxtheme.dll
0x0000000096950000 0xad000 C:\Windows\System32\shcore.dll
0x0000000095f10000 0x83000 C:\Windows\System32\bcryptPrimitives.dll
有人知道这个问题吗?请让我知道,如果我能给你任何进一步的信息,以解决问题。
你好,卢卡
发布于 2022-03-30 14:11:05
如果您使用的是anaconda/miniconda并安装了matplotlib。您将不得不卸载anaconda/miniconda,并在不使用matplotlib的情况下使用miniconda。
这是一个众所周知的问题,在这里输入链接描述
发布于 2022-03-08 19:07:55
对所有有相同问题的人进行更新:
毕竟,对我起作用的是将QtCreator项目的环境更改为系统环境。标准选择的环境是build environment.And i QtCreator version 6+,而QtCreator5目前正在使用该环境。(图片是德文版,但我希望你能比较正确的菜单)
所以我在QtCreator 5.15.2中用PySide2启动了projects。我使用Python3.9.7在anaconda3的虚拟环境中工作,在那里我确保安装了所有与PySide和pyqt相关的包(PySide2、PySide6、PyQt5、pyqt 5-tools、pyqt、qtpy)。此外,它们都带有pip3和--用户,因为它们都需要权限。
也许这并不是每一种方式都有意义,而且这里的一些步骤可能是微不足道的,但是我自己对编程世界来说还是很新的,所以也许其他人可以从这个信息中获得一些价值。
但是如果有人能向我解释其他问题(构建环境不工作(只有系统environment)在这里输入图像描述,Qt6不能工作),我会很高兴的!!
https://stackoverflow.com/questions/71398896
复制相似问题