Windows部署superset操作手册

一、python导出所有已安装的模块

1、首先安装freeze模块

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

 

安装成功

 

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

pip freeze> C:\Users\zd\Desktop\requirements.txt

pip freeze> C:\Users\lenovo\Desktop\requirements.txt

导出成功

 

 

二、安装Anaconda 

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

把anaconda添加到path里面

 

三、安装superset流程

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

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 命令先安装,建议指定上面的数据源,这样会比较快 :flask、wtforms_json、flask_appbuilder、flask_compress、flask_migrate、flask_talisman、flask_caching、email_validator、celery、sqlparse、bleach、markdown、numpy、pandas==0.23.4、pathlib2、simplejson、humanize、polyline、geopy、backoff、pyarrow、croniter、retry、isodate、SQLAlchemy==1.2

8、pip install 一次安装多个包

pip install -r C:\Users\zd\Desktop\requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

pip install -r C:\Users\lenovo\Desktop\requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

或安装依赖文件

项目代码目录下的requirements.txt
pip install -r requirements.txt

安装中

 

全部安装完毕

 

9、进入superseta虚拟环境

先进入到d盘

 

cd D:\Anaconda3\envs\superset\Lib\site-packages\superset\bin

 

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

 

posted @ 2021-01-31 01:22  干it的小张  阅读(468)  评论(0编辑  收藏  举报