首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在CentOS7上安装时出现AirFlow错误

在CentOS7上安装时出现AirFlow错误
EN

Stack Overflow用户
提问于 2020-08-12 19:48:40
回答 1查看 219关注 0票数 0

我正在尝试在我的本地机器CentOS7上安装Apache AirFlow。我有python 2.7。安装AirFlow时出现以下错误

代码语言:javascript
复制
[dsawale@localhost ~]$ pip install apache-airflow==1.10.9
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
Defaulting to user installation because normal site-packages is not writeable
Collecting apache-airflow==1.10.9
  Using cached apache_airflow-1.10.9-py2.py3-none-any.whl (4.6 MB)
Collecting flask-appbuilder<2.0.0,>=1.12.2; python_version < "3.6"
  Downloading Flask-AppBuilder-1.13.1.tar.gz (1.5 MB)
     |████████████████████████████████| 1.5 MB 742 kB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-D2TCrh/flask-appbuilder/setup.py'"'"'; __file__='"'"'/tmp/pip-install-D2TCrh/flask-appbuilder/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pNlWPA
         cwd: /tmp/pip-install-D2TCrh/flask-appbuilder/
    Complete output (3 lines):
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    error in Flask-AppBuilder setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

你能帮我解决这个问题吗?谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-13 03:33:28

请使用下面的工具升级setuptools。

代码语言:javascript
复制
pip install --upgrade setuptools 

请让我知道。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63375895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档