如何在mac os和ubuntu中安装mesos.native python模块

n7taea2i  于 2021-06-26  发布在  Mesos
关注(0)|答案(1)|浏览(290)

我想用python编写和运行mesos框架,所以我需要mesos.native模块。
在ubuntu上:
我可以从源代码构建mesos。我试图轻松地安装所有生成的egg文件,但没有一个使python能够导入mesos.native。
我还试着从http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg 安装起来也很简单,但效果不太好。
在max os上:
由于这个问题,在构建mesos源代码时遇到了一些问题。因此,我想知道是否有一种简单的方法来安装python模块而不构建源代码。
顺便说一句,为什么他们不让mesos.native pip像mesos.interface一样可以安装呢?

6tdlim6h

6tdlim6h1#

问题解决:https://github.com/robindong/mesos-python-examples/blob/master/calculate_pi/pi_run
我只需要在文件中设置pythonpath并运行python。可以成功加载mesos.native。

相关问题