安裝時:運行"pip install superset -i https://pypi.douban.com/simple"命令後,geohash包安裝不成功。嘗試安裝對應的whl格式文件還是報錯。安裝c++對依賴包進行編譯,"yum install gcc","yum install -y gcc-c++"
運行時:過 cd
命令進入 Superset 安裝目錄( ...\Anaconda3\envs\superset\Lib\site-packages\superset\bin ),運行
python superset db upgrade
python superset load_examples
python superset init
python superset runserver
直接運行 python superset runserver
會出錯,首先安裝 waitress,‘pip install waitress’,接着找到 superset/cil.py 的 debug_run()
函數
def debug_run(app, port):
from waitress import serve #使用 waitress 解決 gunicorn 不支持 windows 問題
return serve(
app,
host='0.0.0.0',
port=int(port))
再次運行 Superset:
python superset runserver -d -p 8079
報錯:'no such command "runserver" '
運行啓動命令:flask run --host=##.##.##.## -p 8088 --with-threads --reload --debugger