Superset报错

安装时:运行"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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章