1. 安装环境
CentOS
2. 新建项目
创建虚拟环境及项目目录python3 -m venv mySuperset
激活虚拟环境source mySuperset/bin/activate
安装supersetpip install apache-superset
按需挂代理pip install apache-superset --proxy="proxy.com:80"
3. 初始化
cd到superset包安装路径cd venv\Lib\site-packages\superset
创建admin账号,根据提示输入姓、名、邮箱flask fab create-admin --username admin --password 123456
初始化数据库superset db upgrade
载入测试数据(墙的问题可能连不上,不影响后续)superset load_examples
初始化角色和权限superset init
4. 启动服务
superset run
或者 flask run
可加参数-h -p 修改IP和端口,0.0.0.0对公网开放 superset run -h 0.0.0.0 -p 5000 --with-threads --reload --debugger
参考资料
1.http://www.woshipm.com/data-analysis/760397.html
2.https://blog.csdn.net/qq_33703137/article/details/87874277
3.https://www.jianshu.com/p/669b2be5a160
4.https://aichamp.wordpress.com/2019/11/20/installing-apache-superset-into-centos-7-with-python-3-7/