簡體   English   中英

使用pyuic5的問題

[英]Troubles using pyuic5

我在我的機器上安裝了 python 3.8.5,我安裝了 pyuic5 並用它來將.ui 轉換為.py 文件(使用 cmd)。 我最近升級到 python 3.8.7,每當我現在嘗試轉換時,都會收到此錯誤:

C:\Users\....>pyuic5 -x Windows.ui -o Windows.py
Fatal error in launcher: Unable to create process using '"d:\program files\python3.8.5\python.exe"  "D:\Program Files\Python 3.8.7\Scripts\pyuic5.exe" -x Windows.ui -o Windows.py': The system cannot find the file specified.

我確保 pyqt5 和 pyuic5 已正確安裝。 我不是專家,但我相信 cmd 正在從 python3.8.5 文件夾(我安裝的舊版本)而不是 python3.8.7 文件夾中尋找 python.exe 文件。

更新:我 pip 卸載/重新安裝了以下內容,這解決了我的問題:PyQt5 PyQt5-tools PyQt5-sip PyQtWebEngine

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM