首页 > 系统相关 >Windows部署superset操作手册

Windows部署superset操作手册

时间:2022-12-22 19:32:11浏览次数:65  
标签:requirements 操作手册 Windows flask install pip 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​

 



标签:requirements,操作手册,Windows,flask,install,pip,superset,安装
From: https://blog.51cto.com/u_15920572/5963229

相关文章

  • 使用WinSW将springboot jar项目安装为windows服务
    1、下载WinSW:https://github.com/winsw/winsw/releases,此处下载WinSWv2.11.0版,以下几个版本都行:  此处使用WinSW-x64.exe2、假如jar文件名称为:hello.jar,就将WinSW-x......
  • 使用WinSW将nacos安装为windows服务
    1、下载WinSW:https://github.com/winsw/winsw/releases,此处下载WinSWv2.11.0版,以下几个版本都行:  此处使用WinSW-x64.exe2、将WinSW-x64.exe重命名为nacos-service.......
  • windows 环境npm或yarn安装 node-sass失败的问题
    先说结论是,使用npm最后成功,没有去专门下载安装python27packjson.json我没有删除,使用降node版本的方法解决了,但不知道是不是最优1、中间最主要操作是:使用nvm管理node版......
  • nginx学习记录【一】在windows上的安装nginx的教程
    1、下载地址http://nginx.org/en/download.html2、选择windows版本如下图:   3、解压并运行解压到指定目录,如下图 打开cmd,然后cd到那个目录,如下图: ......
  • Windows安全事件ID清单
    ID desc1100 事件记录服务已关闭1101 审计事件已被运输中断。1102 审核日志已清除1104 安全日志现已满1105 事件日志自动备份1108 事件日志记录服务遇到错误4608 Wi......
  • Windows10/11中VirtualBox7.0安装CentOS Stream 8
    Windows10/11中VirtualBox安装CentOSStream8二.虚拟机内安装0.安装选择Testthismedia&InstallCentOSStream8-stream一).系统设置(SYSTEM)1.磁盘分区Instal......
  • Windows 平台下 Go 语言的安装和环境变量设置
    1.Go语言SDK安装包下载和安装最新稳定版1.5.3安装包go1.5.3.windows-amd64.msi下载地址https://golang.org/dl/,大小约69MB(作者上传了一份该版本安装包到CSDN......
  • windows--cmake与c++的使用教程(16)
    1概述本文基于前文环境本节目标:macro编写与函数编写2macro与function可类比C语言中的宏定义与函数CMakefunction传递参数时,不用传递参数类型cmakemacro......
  • Windows Server 2012 R2 Standard安装mellanox网卡驱动
    原因:我的系统是WindowsServer2012R2Standard首先我是想要安装mellanox网卡驱动,然后系统让我安装WindowsServer2012R2安装补丁KB2999226思路:经过网上查找资料安装......
  • 禁止windows系统自动更新
    第一步win+r,输入services.msc找到WindowsUpdate单击 常规->启动类型选择禁用。恢复->第一次失败选择无操作最后应用保存  第二步win+r,......