1. 安裝Python ,需要安裝3.5版本以上,我安裝的是3.6.8
2、開始安裝superset。
pip install superset==0.27.0
# 創(chuàng)建管理員帳號(hào)
fabmanager create-admin --app superset
# 初始化數(shù)據(jù)庫(kù) (windows下,先進(jìn)入到 Python安裝目錄下,libs\site-packages\superset\bin下)
Python? superset db upgrade
# 加載例子(后續(xù)操作都需要在libs\site-packages\superset\bin下)
Python superset load_examples
# 初始化角色和權(quán)限
Python superset init
# 啟動(dòng)服務(wù),端口 8088, 使用 -p 更改端口號(hào)
Python superset runserver -d
3、常見問(wèn)題
1)python 安裝superset問(wèn)題Was unable to import superset Error: markdown() takes 1 positional argument but 2
解決方法:pip install "markdown<3.0.0" superset==0.27.0
2)Was unable to import superset Error: cannot import name '_maybe_box_datetimelike'錯(cuò)誤則需要
解決方法:pip uninstall pandas
? ? ? ? ? ? ? ? ?pip install pandas==0.23.4
3)Was unable to import superset Error: No module named 'geohash'
解決方法: 1、將Geohash文件夾改成geohash;
? ? ? ? ? ? ? ? ? ?2、將文件夾下的 __init__.py 中的 from geohash 改成 from?.geohash(注意:在geohash前面多了一個(gè)點(diǎn))
4)No user created an error occured
解決方法:需要?jiǎng)h除.superset.db數(shù)據(jù)庫(kù)