這樣做pip install PyQt5時會安裝 PyQt5,但它缺少一些二進制檔案,
我真正想要的是與 QML 一起使用的 Lottie 影片庫
我正在使用 Windows 10 64bit 我只是迷路了尋找它。
我用過python -m pip install aqtinstall
并運行命令下載二進制檔案,但這些二進制檔案與我擁有的 QT 5.15.2 不匹配,即使我在 aqtinstall 中指定了版本。
如果有任何關于如何安裝正確版本的 PyQt5 以便能夠通過 QML 運行 lottie 影片的示例,請分享。
編輯:
感謝@eyllanesc 和@mugiseyebrows,
我被提到了@eyllanesc 答案:在 PyQt5 中 實作 Lottie JSON 影片
雖然它適用于基于 linux 的系統。但是 aqt 安裝程式很有幫助。細微的變化是在命令中使用 windows 而不是 linux:
python -m aqt install 5.15.2 windows desktop win64_msvc2019_64 --outputdir -m qtlottie
然后您將復制lottieqt folder@eyllanesc 解釋的相同方式,但隨后Qt5Bodymovin.dll在bin folderand 您還需要將其復制到 Qt5 目錄內的 bin 檔案夾中。
它有效!
uj5u.com熱心網友回復:
感謝@eyllanesc 和@mugiseyebrows,
我被提到了@eyllanesc 答案:在 PyQt5 中實作 Lottie JSON 影片
雖然它適用于基于 linux 的系統。但是 aqt 安裝程式很有幫助。細微的變化是在命令中使用 windows 而不是 linux: python -m aqt install 5.15.2 windows desktop win64_msvc2019_64 --outputdir -m qtlottie
然后你會復制 lottieqt 檔案夾,就像@eyllanesc 解釋的那樣,但是 Qt5Bodymovin.dll 在 bin 檔案夾中找到,你還需要將它復制到 Qt5 目錄內的 bin 檔案夾中。
它有效!
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/464925.html
