python - 如何在 Mac OSX 上以简单的方式安装 gst-python (gstreamer python bind)?

标签 python macos macports gstreamer

如何在我的 Mac (Snow Leopard) 上安装 gst-python,这是 GStreamer 的 python 绑定(bind)?这可能涉及使用像 homebrew 这样的包管理器或 MacPorts .

我一直在到处寻找包裹。编译真是一团糟。

如果这不可能,有什么替代方案?欢迎详细指导。 :)

最佳答案

按照说明安装基础 MacPorts here .如果您已经安装了 MacPorts,请确保端口文件是最新的:

$ sudo port selfupdate

然后,根据您是想使用 Python 2.6 还是 Python 2.7,安装适当的端口:

$ sudo port install py26-gst-python

或:

$ sudo port install py27-gst-python

然后坐等。请注意,这些端口似乎引入了很多依赖包,包括 MacPorts Python 安装和 Gnome,因此可能需要一段时间.但是,最终,它应该一切正常。

关于python - 如何在 Mac OSX 上以简单的方式安装 gst-python (gstreamer python bind)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4663946/

相关文章:

macos - selfupdate macports 不工作

python - pg.内部错误 : SSL SYSCALL error: EOF detected

Mac 上的 C++ : linker command failed with exit code 1 (use -v to see invocation)

Python 多处理队列 NotImplementedError macOS

javascript - 如何在 OSA 事件处理程序中将 'using terms from ...' 转换为 Javascript

c++ - OSX 10.9 上的 Macports - 使用 -stdlib=libstdc++ 编译

Python:列表代数简化

python - 在 Python 中,dict.pop(a,b) 是什么意思?

python - 在 python/pandas 中按月对每日数据进行分组,然后进行归一化

python - 使用 cmake 找到正确的 Python 框架