windows下安裝superset

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ù)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容