Created
March 21, 2019 03:53
-
-
Save jhsea3do/392234781a1faa24594e2835a374bd45 to your computer and use it in GitHub Desktop.
airflow install (aliyun)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum install -y curl wget unzip net-tools psmisc; | |
sudo yum install -y http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-release-el7-10.noarch.rpm; | |
sudo yum install -y mysql-community-client mysql-community-devel | |
sudo yum groupinstall -y "Development Tools" | |
# https://mirror.tuna.tsinghua.edu.cn/help/epel/ | |
# hosts | |
# 151.101.9.63 files.pythonhosted.org | |
# 151.101.192.223 pypi.org | |
sudo yum install -y epel-release | |
sudo yum install -y python36 python36-devel python36-pip python36-virtualenv | |
sudo mkdir -p /home/py3 | |
cd /home | |
sudo chown $(id -u):$(id -g) py3 | |
virtualenv-3.6 --python=/usr/bin/python3.6 py3 | |
. /home/py3/bin/activate | |
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
pip install pip -U | |
SLUGIFY_USES_TEXT_UNIDECODE=yes pip install --log 1.log apache-airflow[mysql] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment