开发者社区> 问答> 正文

在centos7.2上根据官网上的方式安装mesos1.1,在执行make的时候报错如下:?报错

test "../.." = ".." || \
(/usr/bin/mkdir -p python/scheduler/src/mesos/scheduler && cp -pf ../../src/python/scheduler/src/mesos/scheduler/proxy_scheduler.hpp python/scheduler/src/mesos/scheduler/proxy_scheduler.hpp)
test "../.." = ".." || \
(/usr/bin/mkdir -p python/src/mesos && cp -pf ../../src/python/src/mesos/__init__.py python/src/mesos/__init__.py)
Building protobuf Python egg ...
cd ../3rdparty/protobuf-2.6.1/python && \
CC="gcc" \
CXX="g++" \
CFLAGS="-g1 -O0 -Wno-unused-local-typedefs" \
CXXFLAGS="-g1 -O0 -Wno-unused-local-typedefs -std=c++11" \
PYTHONPATH=/root/mesos/build/3rdparty/setuptools-20.9.0 \
/usr/bin/python setup.py build bdist_egg
Traceback (most recent call last):
File "setup.py", line 200, in 
"Protocol Buffers are Google's data interchange format.",
File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
setup_distribution = dist = klass(attrs)
File "/root/mesos/build/3rdparty/setuptools-20.9.0/setuptools/dist.py", line 269, in __init
_
self.fetch_build_eggs(attrs['setup_requires'])
File "/root/mesos/build/3rdparty/setuptools-20.9.0/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/root/mesos/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/root/mesos/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 1085, in best_match
dist = working_set.find(req)
File "/root/mesos/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 695, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages), Requirement.parse('pytz>=2010'))
make[2]: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg] Error 1
make[2]: Leaving directory /root/mesos/build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
/root/mesos/build/src'
make: *** [all-recursive] Error 1

展开
收起
爱吃鱼的程序员 2020-06-08 16:39:04 460 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    问题已解决,升级下pytz就可以了:

    #pipinstallpytz--upgrade

    2020-06-08 16:39:21
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
我的Docker-Docker插件机制详解 立即下载