PyQt5 問題

狀況:執行qt designer 時發現錯誤訊息:「找不到 VCRUNTIME140_1.dll」

安裝完PyQt5與pyqt-tools之後,打算透過Pycharm來寫一個視窗化的python程式,卻發現事情總是沒以想像中的容易……

解決方法:

前往微軟網站,下載適用於 Visual Studio 2015、2017 和 2019 的 Microsoft Visual C++  可轉散發套件。安裝完成後需要重新開機。

狀況:執行qt designer 時發現錯誤訊息:This application failed to start because it could not find or load the Qt platform plugin “windows"

上述問題解決後,居然發生了新的問題……主要原因是放置pyqt5-tools套件的資料夾中缺少了必要的DLL檔

解決方法:

將 …..\anaconda3\Lib\site-packages\PyQt5\Qt\plugins\platformsy 資料夾內的檔案複製至 ……\anaconda3\Lib\site-packages\pyqt5_tools\Qt\bin\platforms資料夾中。

發表留言

在WordPress.com寫部落格.

向上 ↑

使用 WordPress.com 設計專業網站
立即開始使用