解決This application failed to start because it could not find or load the Qt platform plugin "windows
PyQt5+python做UI時,使用pyinstaller打包成exe,點選執行exe檔案時,出現This application failed to start because it could not find or load the Qt platform plugin "windows錯誤。
問題是,缺少必要的dll檔案,我們找到路徑:C:\ANACONDA\Lib\site-packages\PyQt5\Qt\plugins(這是我的安裝路徑),在此資料夾下找到platforms資料夾,然後拷貝整個資料夾,將其放到與exe相同的路徑下,這時候就可以執行exe了。
注意:
1.雖然在開始生成exe檔案時,會包含一個PyQt5資料夾,這裡面也有一個platforms資料夾,可是把這個資料夾拷貝出來並不可行。
2.如果設計的UI採用介面與邏輯分離,也就是多個python檔案時,使用pyinstaller執行main函式所在的python檔案即可。
相關推薦
解決This application failed to start because it could not find or load the Qt platform plugin "windows
PyQt5+python做UI時,使用pyinstaller打包成exe,點選執行exe檔案時,出現This application failed to start because it could not find or load the Qt platform plugi
This application failed to start because it could not find or load the Qt platform plugin windows
Qt 程式報錯 This application failed to start because it could not find or load the Qt platform plugin “windows” 如下圖 今天遇到一個很奇怪的問題,Qt應用程
This application failed to start because it could not find or load the Qt platforms plugins
由於一直在linux下操作,今天Qt移植平臺的時候導致.exe可執行檔案一直執行不起來,提示缺少某些dll庫,這個問題解決起來簡單(直接去qt原始碼裡面查詢對應庫新增到可執行檔案目錄就行),但是之後
【qt錯誤】This application failed to start because it could not find or load
qt釋出exe無法執行,提示plugin windows錯誤 This application failed to start because it could not find or load the Qt platform plugin “window
could not find or load the Qt platform plugin windows的解決方法
VS+Qt5環境下建立一個Qt工程,在本機執行沒問題,可是把.exe和用到的.dll打包發到別人電腦上卻執行不了,報錯如下: 為什麼會這樣?這是因為程式執行需要Qt本身的一些dll,把這些缺失的dll補上就可以了。 需要注意的是:一般遇到這個報錯,是缺少plugins
[pyqt5]解決could not find or load the Qt platform plugin windows
在PyQt5+python3+pycharm開發環境配置時,遇到了This application failed to start because it could not find or load
解決Qt編譯動態連結庫could not find or load the Qt platform plugin "windows" in.問題
最近用Qt5做了一個專案的介面,在編譯成可執行檔案EXE之後,執行檔案,提示: This application failed to start because it could not find or load the Qt platfo rm plugin "windows" in "".
MongoDB安裝+解決錯誤:Failed to start mongod.service:until not found
在ubuntu下安裝MongoDB的步驟: 1.執行"apt-get install mongo"如果遇到找不到安裝包的話執行"apt-get update" 2.這時裝好以後應該會自動執行mongod程式,通過"pgrep mongo -l "檢視程序是否已經啟動
flume啟動報錯 Could not find or load main class org.apache.flume.node.Application
修改flume的資料夾名稱後,啟動flume可能會失敗,錯誤資訊如下: Error: Could not find or load main class org.apache.flume.node.Application 這個是因為環境變數的問題。 export看一下是不是有個FLUME_HOME的
Jib構建映象的問題分析(Could not find or load main class ${start-class})
問題簡述 通過Jib外掛將SpringBoot工程製作成Docker映象成功,但是執行映象的時候報錯(Could not find
APPLICATION FAILED TO START問題解決
bean req like dem required art cat esc pri 在使用SpringBoot裝配mybatis時出現了異常 *************************** APPLICATION FAILED TO START *********
CentOS7.2安裝mariadb-server,解決Failed to start mysqld.service: Unit not found
serve bsp 開機啟動 輸入 enable -s emctl b-s art 當輸入命令 ~]# systemctl start mysql.service 要啟動MySQL數據庫是卻是這樣的提示 Failed to start mysqld.service: Uni
class path resource [logback.xml] cannot be resolved to URL because it does not exist 問題解決
今天在自己搭建Springboot 框架的時候,在配置 logging.config=classpath:logback.xml 出現找不到這個檔案的錯誤 經發現是maven的一個寫法問題,本來我是打算打算替換 .properties檔案中的內容,後面啟動的時候報錯,發現主要原因是 mavne
CentOS7安裝MySQL報錯,解決Failed to start mysqld.service: Unit not found CentOS7安裝MySQL,解決Failed to start mysqld.service: Unit not found
當輸入命令 ~]# systemctl start mysql.service 要啟動MySQL資料庫是卻是這樣的提示 Failed to start mysqld.service: Unit not found 解決方法如下: 首先需要安裝mariadb-serv
centos7 安裝mysql 解決 Failed to start mariadb.service: Unit not found.
啟動mysql服務的時候出現這樣的錯誤。 解決辦法: 首先需要安裝mariadb-server yum install -y mariadb-server 啟動服務 systemctl
在centos下啟動nginx出現Failed to start nginx.service:unit not found
/var/ starting root stop case 文件名 ima || 開啟 錯誤的原因就是沒有添加nginx服務,所以啟動失敗。 解決方法: 1. 在/root/etc/init.d/目錄下新建文件,文件名為nginx 或者用命令在根目錄下執行:# v
Invalid 'log4jConfigLocation' parameter: class path resource [log4j.xml] cannot be resolved to URL because it does not exist
cau 是否 大堆 class not tomcat cati gpo div 有一天手賤,無意間把eclipse中項目刪了,重新從svn上拉代碼,然後在導進eclipse,啟動Tomcat,報錯 Invalid ‘log4jConfigLocation‘ paramete
Failed to start docker.service: Unit not found.
persist ecc spm cto tin dock starting 測試版 rep 安裝教程參考: https://docs.docker.com/install/linux/docker-ce/centos/#install-docker-ce-1 https
【錯誤解決】[Maven] cannot be opened because it does not exist錯誤[檔案無法編譯到target目錄下的解決方法]
使用IDEA搭建的Maven專案,在寫SpringEL和資源呼叫時出現瞭如下錯誤: 相信我,程式碼沒問題的、 Caused by: java.io.FileNotFoundException: class path resource [cn/hncu
service nginx start啟動nginx出現Failed to start nginx.service:unit not found
一、在/etc/init.d/目錄下新建檔案,檔名為nginx vim /etc/init.d/nginx 二、插入以下程式碼片段 #!/bin/sh # nginx - this script starts and stops the nginx daemin # #