Windows部署superset操作手册 一、python导出所有已安装的模块 二、安装Anaconda  三、安装superset流程

1、首先安装freeze模块

pip install freeze -i https://mirrors.aliyun.com/pypi/simple/

安装成功

2、导出到桌面requirements.txt 文件

pip freeze> C:UserszdDesktop equirements.txt

pip freeze> C:UserslenovoDesktop equirements.txt

导出成功

二、安装Anaconda 

查看本文件夹里面其他文档

anaconda添加到path里面

三、安装superset流程

1coda命令来创建虚拟环境:

conda create -n superseta python=3.7

 

 

等待中

 

 

安装成功

 

2激活虚拟环境:

activate superset

 

3、查看已经安装了哪些包

pip list

4、安装cryptography

pip install cryptography -i https://mirrors.aliyun.com/pypi/simple/

5、更新setuptools pip

pip install --upgrade setuptools pip -i https://mirrors.aliyun.com/pypi/simple/

6、安装 superset

pip install superset -i https://mirrors.aliyun.com/pypi/simple/

7、安装其他的包

安装superset后,可以用 pip 命令先安装,建议指定上面的数据源,这样会比较快 flaskwtforms_jsonflask_appbuilderflask_compressflask_migrateflask_talismanflask_cachingemail_validatorcelerysqlparsebleachmarkdownnumpypandas==0.23.4pathlib2simplejsonhumanizepolylinegeopybackoffpyarrowcroniterretryisodateSQLAlchemy==1.2

8pip install 一次安装多个包

pip install -r C:UserszdDesktop equirements.txt -i https://mirrors.aliyun.com/pypi/simple/

pip install -r C:UserslenovoDesktop equirements.txt -i https://mirrors.aliyun.com/pypi/simple/

安装中

全部安装完毕

9、进入superseta虚拟环境

先进入到d

cd D:Anaconda3envssupersetLibsite-packagessupersetin

10升级数据库

python  superset db upgrade

 

11、修改geohash

改小写

__init__里面加点

12、创建管理员账号

python superset fab create-admin

 

13载入案例数据(若载入不成功,可跳过此步骤)

python superset load-examples

14初始化数据库

python superset init

15、启动服务

Python superset run -p 8088

16、浏览器登录

http://127.0.0.1:8088