关于安装airflow遇到的问题

问题1:

Python pylint requires Python '>=3.4.*' but the running Python is 2.7.12

解决办法:

(1)在linux服务器上执行Python,然后你会看到你的Python 版本为2.7.12.

(2)之后输入:cd /usr/bin/
/usr/bin# ls -l | grep python
查看Python信息

(3)再输入这两个命令:
sudo rm -rf python
sudo ln -s /usr/bin/python3 /usr/bin/python

(4) 执行Python然后你会看到你的Python 版本已经变成了3.7.9

 

 (5) 然后你在安装相关包的时候使用pip3 install 去安装。

参考文档: https://blog.csdn.net/weixin_44877226/article/details/108400628

 

问题2 

     Setup script exited with error: command 'gcc' failed with exit status 1

解决办法:

由于没有正确安装Python开发环境导致。

  Debin/Ubuntu

  • Python2
    sudo apt-get install python-dev
  • Python3
    sudo apt-get install python3-dev
    可能需要libevent库
    sudo apt-get install libevent-dev
    最后更新下开发环境
    sudo apt-get groupinstall 'development tools'

   Centos/Fedora

 sudo yum install python-devel
 sudo yum install libevent-devel
 easy_install gevent
    或者
  pip install gevent
把环境更新下
 sudo yum install groupinstall 'development tools'

参考文档:https://www.cnblogs.com/gerrydeng/p/7159021.html

问题3 :

     [ERROR] Connection in use 127.0.0.1 8080

参考文档:https://www.cnblogs.com/hedianzhan/p/10131058.html

 

问题4 :

   centos7 File "/usr/libexec/urlgrabber-ext-down", line 28 

    

解决方案如下:

https://blog.csdn.net/smile_foreach/article/details/103186149

 

至此问题得到解决。

关于airflow的相关文档可以自行百度

 

posted on 2021-01-04 16:42  gxg123  阅读(230)  评论(0编辑  收藏  举报

导航