[英]How to install gst-python (gstreamer python bind) on Mac OSX the easy way?
How can I install gst-python , which is GStreamer's python bind, on my Mac (Snow Leopard) the easy way? 如何在我的Mac(Snow Leopard)上轻松安装gst-python ,这是GStreamer的python绑定? This will probably involve using a package-manager like homebrew or MacPorts .
这可能涉及使用像自制程序或MacPorts这样的包管理器。
I've been looking for the package everywhere. 我一直在寻找包裹。 Compiling is a real mess.
编译是一个真正的混乱。
If this isn't possible, what are the alternatives? 如果不可能,有哪些替代方案? Detailed instruction are welcome.
欢迎提供详细说明。 :)
:)
I couldn't post it as a comment because I only have 5 rep, but you actually can install it using: brew install homebrew/versions/gst-python010
. 我无法发布它作为评论,因为我只有5个代表,但你实际上可以使用:
brew install homebrew/versions/gst-python010
来安装它。
This obtains gst-python from the tap containing gst-python010. 这从包含gst-python010的tap中获取gst-python。 The 010 at the end there shows the version 0.10.
最后的010显示版本0.10。
Unfortunately, there is not a 1.0 version from Homebrew's taps or packages, currently. 不幸的是,目前Homebrew的水龙头或软件包还没有1.0版本。
There might be a updated version in the future. 将来可能会有更新版本。
Install the base MacPorts following the instructions here . 按照此处的说明安装基本MacPorts。 If you already have MacPorts installed, make sure the portfiles are up-to-date:
如果您已安装MacPorts,请确保portfiles是最新的:
$ sudo port selfupdate
Then, depending on whether you want to use Python 2.6 or Python 2.7, install the appropriate port, either: 然后,根据您是否要使用Python 2.6或Python 2.7,安装适当的端口,或者:
$ sudo port install py26-gst-python
or: 要么:
$ sudo port install py27-gst-python
and sit back and wait. 然后坐下来等 Be aware that those ports appear to pull in a lot of dependent packages including a MacPorts
Python
installation and Gnome
, so it will likely take a while. 请注意,这些端口似乎引入了许多依赖包,包括MacPorts
Python
安装和Gnome
,因此可能需要一段时间。 But, in the end, it should all just work. 但是,最终,它应该只是起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.