参考文章:
https://segmentfault.com/a/1190000015811094
https://blog.csdn.net/qq_38486203/article/details/83540814
1. 确定是否安装sqlite-devel,可用以下方法测试
import sqlite3
如果安装跳过下面2,3,4,5
2. 执行下面命令安装sqlite-devel
yum -y install sqlite-devel
3. 重新安装pyenv
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer| bash
4. 删掉原有的python环境并重新安装
pyenv uninstall x.x.x
pyenv install 3.6.7
5. 打包dist(需要安装node环境)
cd /superset/assets/
npm run build (如果没有安装依赖执行: npm install)
6. python2安装Virtualenv(python3自带 跳转到7)
pip install virtualenv
7. 创建ven环境
cd ../incubator-superset
python3 -m venv venv
8. 激活ven环境
source venv/bin/activate
9. 安装项目依赖包
pip install -r requirements.txt
10. 安装superset
pip install superset
11. 启动superset项目
superset runserver
superset runserver -p 8088 (指定端口)
nohup superset runserver > /dev/null 2>&1 &
12.退出ven环境命令
deactivate