【问题标题】:How to install mesos.native python module in Mac OS and Ubuntu如何在 Mac OS 和 Ubuntu 中安装 mesos.native python 模块
【发布时间】:2016-08-22 14:13:49
【问题描述】:

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

在 Ubuntu 上:

我可以从源代码构建 mesos。我尝试easy_install所有生成的egg文件,但没有一个可以让Python导入mesos.native。

我还尝试从http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg 下载鸡蛋并轻松安装它,但效果不佳。

在最大操作系统上:

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

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

【问题讨论】:

    标签: python mesos mesosphere


    【解决方案1】:

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

    我只需要在文件中设置 PYTHONPATH 并运行 python。 Mesos.native 可以成功加载。

    【讨论】:

    • 仍然不适合我。您将 PYTHONPATH 设置为包含本地安装 mesos 得到的 python 鸡蛋的目录?你用的是哪个版本的python?
    猜你喜欢
    • 2015-10-26
    • 2020-11-26
    • 1970-01-01
    • 2020-02-22
    • 2016-07-06
    • 1970-01-01
    • 2011-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多