缺少pyqt5二进制文件
当做pip install pyqt5
它安装了pyqt5,但缺少一些二进制文件,
我真正在寻找的是与qml一起使用的lottie动画lib,
我正在使用Windows 10 64bit,我一直在寻找它。
我已经使用了python -m pip安装aqtinstall
并运行命令下载二进制文件,但是即使我在aqtinstall中指定版本时,这些二进制文件也与我拥有的QT 5.15.2不匹配。
如果有任何如何安装正确版本的Pyqt5版本以通过QML运行Lottie动画的示例。
编辑:
感谢@eyllanesc和@mugiseyebrows,
我被推荐给@eyllanesc答案:将Lottie JSON动画实施到PYQT5中,
尽管它是针对基于Linux的系统。但是AQT安装程序很有帮助。 略有更改是在命令中使用Windows而不是Linux: Python -M AQT安装5.15.2 Windows Desktop Win64_MSVC2019_64 -OutputDir -M Qtlottie
,然后您将复制lottieqt folder
@eyllanesc也解释了<代码> qt5bodymovin.dll 在bin文件夹
中找到,您还需要将其复制到qt5目录内的bin文件夹中。
而且有效!
When doing pip install PyQt5
it installs PyQt5 but its missing some binaries,
what I am really looking for is the Lottie animation lib that works with QML
I'm using windows 10 64bit I been just lost looking for it.
I have used python -m pip install aqtinstall
and ran the command to download the binaries but those binaries don't match the QT 5.15.2 that I have, even when I specify the version in aqtinstall.
if there are any examples of how to install the right version of PyQt5 to be able to run lottie animations thro QML please share.
EDIT:
Thanks to @eyllanesc and @mugiseyebrows,
i got referred to @eyllanesc answer: Implementing a Lottie JSON animation into PyQt5
Although it was for linux based systems. but the aqt installer was big help.
the slight change was using windows instead of linux in the command:python -m aqt install 5.15.2 windows desktop win64_msvc2019_64 --outputdir -m qtlottie
And then you would copy the lottieqt folder
the same way @eyllanesc has Explained but then the Qt5Bodymovin.dll
is found in the bin folder
and You would also need to copy it into the bin folder inside the Qt5 directory.
And it works!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
多亏了@eyllanesc和@mugiseyebrows,
我被推荐给@eyllanesc答案:
尽管它是基于Linux的系统,但在PYQT5中实现了Lottie JSON动画。但是AQT安装程序很有帮助。略有更改是在命令中使用Windows代替Linux:Python -M AQT安装5.15.2 Windows桌面WIN64_MSVC2019_64 -OUTPUTDIR -M QTLOTTIE
,然后您将Lottieqt文件夹复制为@eyllanesc的方式,但是@eyllanesc也解释了qt5bodymovin。 DLL在bin文件夹中找到,您还需要将其复制到QT5目录内的bin文件夹中。
而且有效!
Thanks to @eyllanesc and @mugiseyebrows,
i got referred to @eyllanesc answer: Implementing a Lottie JSON animation into PyQt5
Although it was for linux based systems. but the aqt installer was big help. the slight change was using windows instead of linux in the command: python -m aqt install 5.15.2 windows desktop win64_msvc2019_64 --outputdir -m qtlottie
And then you would copy the lottieqt folder the same way @eyllanesc has Explained but then the Qt5Bodymovin.dll is found in the bin folder and You would also need to copy it into the bin folder inside the Qt5 directory.
And it works!