简体   繁体   English

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

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

I would like to write and run a Mesos framework with Python, so I need mesos.native module. 我想用Python编写和运行Mesos框架,所以我需要mesos.native模块。

On Ubuntu: 在Ubuntu上:

I can build mesos from source code. 我可以从源代码构建mesos。 I tried to easy_install all the generated egg files but none of them made it possible for Python to import mesos.native. 我试图easy_install所有生成的egg文件,但没有一个使Python能够导入mesos.native。

I also tried to download the egg from http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg and easy_install it, which didn't work as well. 我也尝试从http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg和easy_install下载鸡蛋,但效果不佳。

On Max OS: 在Max OS上:

Got some problem building the mesos source code because of the issue . 由于问题,在构建mesos源代码时遇到了一些问题 So I am wondering whether there is an easy way to install the Python module without building the source code. 所以我想知道是否有一种简单的方法来安装Python模块而不构建源代码。

BTW, why don't they make the mesos.native pip-installable like mesos.interface? 顺便说一句,他们为什么不制作像mesos.interface这样的mesos.native pip-installable?

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

I just need to set PYTHONPATH as that in the file and run python. 我只需要在文件中设置PYTHONPATH并运行python。 Mesos.native can be successfully loaded. 可以成功加载Mesos.native。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM