如何在 Mac OS 和 Ubuntu 中安装 mesos.native python 模块

How to install mesos.native python module in Mac OS and Ubuntu

我想用 Python 编写 运行 Mesos 框架,所以我需要 mesos.native 模块。

在 Ubuntu:

我可以从源代码构建 mesos。我尝试 easy_install 所有生成的 egg 文件,但是 none 使得 Python 可以导入 mesos.native.

我也尝试从 http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg 和 easy_install 下载 egg,但效果不佳。

最大 OS:

由于 the issue,在构建 mesos 源代码时遇到了一些问题。所以我想知道是否有一种简单的方法可以在不构建源代码的情况下安装 Python 模块。

顺便说一句,他们为什么不像 mesos.interface 那样让 mesos.native 可以通过 pip 安装?

已解决的问题:https://github.com/RobinDong/mesos-python-examples/blob/master/calculate_pi/pi_run

我只需要将 PYTHONPATH 设置为文件中的 PYTHONPATH 和 运行 python。 Mesos.native可以加载成功