【数据可视化】Apache Superset 1.2.0教程 (一)—— 安装(Windows版)


在这里插入图片描述

Apache Superset 是一款由 Airbnb 开源的“现代化的企业级 BI(商业智能) Web 应用程序”,其通过创建和分享 dashboard,为数据分析提供了轻量级的数据查询和可视化方案。

近日推出了全新的 1.2.0版本,本教程也就从头开始讲解Apache Superset的使用。

Apache Superset安装 (Windows版)

window安装superset非常的简单,由于最新的版本已经加入pip库,所以我们可以使用pip库轻松的安装superset。

在这里插入图片描述

一、安装Python环境

我们使用anaconda快速的安装python环境。

_Anaconda_指的是一个开源的Python发行版本,包含了大量的科学包。也提供了很多好用的工具,安装起来非常的友好。

最近安装包下载地址

https://www.anaconda.com/products/individual#Downloads

通过以下地址可以下载各种版本的安装包。

https://repo.anaconda.com/archive/

我们只需要下载windows版本即可。下载完成后安装此exe文件。

安装过程中记得勾选添加环境变量

这样Python环境就搞定了,进入cmd命令行,输入指令进行验证

> python -V

Python 3.8.3

二、Apache Superset安装

1 更新pip库

首先更新pip库

pip install --upgrade pip

等待更新完成后,可以查看一下库里的apache-superset版本

pip install apache-superset==

可以看到,最新的版本为 1.2.0

2 安装apache-superset

pip install --upgrade apache-superset

需要一段时间将依赖包都安装好。一定要确保所有都安装好,有问题及时修复。

3 配置apache-superset

#初始化数据库

superset db upgrade

成功!

在这里插入图片描述

#初始化用户
superset fab create-admin

依次设置用户名密码

#加载例子
superset load_examples

#初始化权限
superset init

4 启动

使用如下指令启动superset

superset run -p 8088 --with-threads --reload --debugger

使用设置好的用户名密码登录即可

全新的页面。赶紧体验吧。


在这里插入图片描述

本文详细讲解了Apache Superset 1.2.0版本安装过程(Windows版本),下一篇我们来进行superset的具体操作与实践。

附录踩坑记录

1、问题一 安装superset提示 pyyaml 安装失败

Attempting uninstall: pyyaml Found existing installation: PyYAML 5.3.1

ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

使用以下指令安装

pip install pyyaml --ignore-installed PyYAML

2、 问题二 安装superset提示 python-geohash安装失败

error: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio”: https://visualstudio.microsoft.com/downloads/

ERROR: Failed building wheel for python-geohash

需要安装: Microsoft Visual C++ 14.0 这个在线安装非常的吃力,所以准备了离线包给大家

3、load_examples失败

这个问题单独私信问我吧

4、进入页面报错权限问题

未执行 superset init

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

九层之台起于累土

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值