obdeploy
obdeploy copied to clipboard
更新了最新的代码,执行build上来就报依赖包版本错误
错误信息如下:
[chris@ob-allinone obdeploy]$ sudo sh rpm/build.sh build
[sudo] chris 的密码:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting mysql-connector-python==8.0.21
Downloading http://mirrors.aliyun.com/pypi/packages/09/f1/472b2add5d411dd8922e3f2a666d307d152e352e94682f01504ca72bdd37/mysql_connector_python-8.0.21-cp27-cp27mu-manylinux1_x86_64.whl (16.0 MB)
|████████████████████████████████| 16.0 MB 670 kB/s
Collecting protobuf>=3.0.0
Downloading http://mirrors.aliyun.com/pypi/packages/6c/be/4e32d02bf08b8f76bf6e59f2a531690c1e4264530404501f3489ca975d9a/protobuf-4.21.0-py2.py3-none-any.whl (164 kB)
|████████████████████████████████| 164 kB 655 kB/s
ERROR: Package 'protobuf' requires a different Python: 2.7.5 not in '>=3.7'
看了一下属于依赖软件包对CentOS 7当前的Python 2.7已经不支持率,不清楚大家是怎么编译的,请指教。
系统环境:
CentOS Linux release 7.9.2009 (Core)
Python 2.7.5
OBD currently requires protobuf==3.18.0. You can use this version for compilation or follow the suggested version for compilation.