[英]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.