Mesos/src/examples/python/test_framework.py 第 25 行,mesos.native 找不到

Mesos/src/examples/python/test_framework.py line 25, mesos.native could not found

我在 Ubuntu14.04 上部署了 apache mesos-0.23 此错误来自最后一步

# Run Python framework (Exits after successfully running some tasks.).

$ ./src/examples/python/test-framework 127.0.0.1:5050
source code:
----
25 import mesos.native
-----
Mesos/src/examples/python/test_framework.py  line 25, mesos.native could not found

谁能帮我解决这个问题?

您可以尝试通过 yum 或 apt-get 安装 mesos

https://open.mesosphere.com/getting-started/datacenter/install/

Ubuntu:

# Setup
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)

# Add the repository
echo "deb http://repos.mesosphere.com/${DISTRO} ${CODENAME} main" | \
  sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
sudo apt-get -y install mesos

CentOS 6:

# Add the repository
sudo rpm -Uvh http://repos.mesosphere.com/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm
sudo yum -y install mesos

我可以在上面导入mesos成功。