赞
踩
Superset的中文翻译是快船,而Superset其实是一个自助式数据分析工具,它的主要目标是简化我们的数据探索分析操作,它的强大之处在于整个过程一气呵成,几乎不用片刻的等待。
superset安装与使用过程:
如果出现Was unable to import superset Error: cannot import name '_maybe_box_datetimelike' ......是因为安装的pandas版本问题,将现版本pandas卸载重新安装pandas
pip uninstall pandas
pip install pandas==0.23.4
如果报错sqlalchemy.exc.InvalidRequestError: Can't determine which FROM clause to join from, there are multiple FROMS which can join to this entity. Try adding an explicit ON clause to help resolve the ambiguity.
将sqlalchemy版本降级到1.2 pip uninstall SQLAlchemy pip install SQLAlchemy==1.2 更改SQLAlchemy 版本后重新初始化数据库
python superset db upgrade
python superset load_examples # 载入案例数据
python superset init # 初始化角色和权限
python superset runserver -d # 启动服务 端口号 8088,使用 -p 更改端口号
数据库连接: mysql://xxxx:xxxxxxxx@0.0.0.0:3306/xxx?charset=utf8
连接数据库之前一定要安装mysqlclient包:pip install mysqlclient
详细教程:https://blog.csdn.net/folecld123/article/details/80705616
其实,按照官方文档,执行到这里,应该就是安装好了,但是通常会报错
还是看个人电脑,有的小伙伴安装过Microsoft Visual C++14.0就不会了,这
里千万不要去微软官方安装这个玩意,浪费时间呀,我就被坑死了!
大家注意下命令行报错的内容,是在安装python-geohash的时候(目前
superset版本中是这个包安装不上),请到这个网站:
https://www.lfd.uci.edu/~gohlke/pythonlibs/,直接搜索下载python-geohash
安装即可
需要python3.6以上
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。