CentOS 7 安装 superset
安装anaconda
bash Anaconda3-2020.07-Linux-x86_64.sh
换国内下载源
sudo vim ~/.conbarc
清华大学开源软件镜像站
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
ssl_verify: true
上海交通大学开源镜像站
channels:
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true
中国科学技术大学 USTC Mirror
channels:
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true
创建python3.6.8环境
conda create -n superset python=3.6.8
激活superset环境
conda activate superset
安装superset-0.30.1
pip install superset -i https://pypi.tuna.tsinghua.edu.cn/simple
初始化superset数据库
superset db upgrade
补装依赖包
安装wtforms_json、flask_compress、celery、flask_migrate、flask_talisman、flask_caching、sqlparse、bleach、markdown、numpy、pandas、parsedatetime、pathlib2、simplejson,humanize,python-geohash,polyline,geopy,cryptography,backoff,msgpack,pyarrow,contextlib2,croniter,retry,selenium,isodate
安装mysql驱动
pip install pymysql
创建管理员账户
export FLASK_APP=superset
flask fab create-admin
superset初始化
superset init
启动superset服务器
superset run