Linux中安装ryu环境依赖出错

安装ryu依赖环境时出现错误 ,未能正确解决问题,求各位提供解决方案

root@ubuntu:/home/zl/ryu# pip install -r tools/pip-requires
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.
Requirement already satisfied: pip==20.3.4 in /usr/local/lib/python2.7/dist-packages (from -r tools/../pip-requirements.txt (line 1)) (20.3.4)
Collecting eventlet==0.31.1
Using cached eventlet-0.31.1-py2.py3-none-any.whl (224 kB)
Collecting msgpack>=0.4.0
Using cached msgpack-1.0.4.tar.gz (128 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Collecting netaddr
Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Collecting oslo.config>=2.5.0
Using cached oslo.config-7.0.0-py2.py3-none-any.whl (125 kB)
Collecting ovs>=2.6.0
Using cached ovs-2.17.1.post1.tar.gz (104 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpmRkm2E
cwd: /tmp/pip-install-J6HTbw/ovs
Complete output (17 lines):
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 280, in
main()
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "/usr/local/lib/python2.7/dist-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/usr/local/lib/python2.7/dist-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/usr/local/lib/python2.7/dist-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 28
file=sys.stderr)
^
SyntaxError: invalid syntax


ERROR: Command errored out with exit status 1: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpmRkm2E Check the logs for full command output.

安装的依赖版本是什么版本,报错复制到记事本发给我