[英]Installing videosequence package for python
我从Pypi下载了videoequence软件包
之后,我从下载的文件夹中运行python setup.py install
,然后运行仅包含from videosequence import VideoSequence
一行的简单脚本,并得到了错误
Traceback (most recent call last):
File "videoseq.py", line 2, in <module>
from videosequence import VideoSequence
File "build/bdist.macosx-10.6-x86_64/egg/videosequence/__init__.py", line 12, in <module>
AttributeError: 'module' object has no attribute 'require_version'
感谢您为解决该问题提供的帮助。
似乎您没有安装所需的PyGObject introspection
库:
注意事项
一次迭代一帧速度很快。 诸如向后迭代或一次跳过n帧之类的技巧很有用,但可能很慢。
该实现基于GStreamer,因此实际上仅适用于现代Unix之类的操作系统,例如Linux或FreeBSD。
必须安装PyGObject自省库。 (见下文。)
尝试从终端运行:
$ sudo apt install gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 \
python-gi python3-gi
另外,如果未安装,则需要GStreamer模块:
$ sudo apt install libgstreamer1.0-dev gstreamer1.0-plugins-good
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.