windows openssl安装_Windows 10 下快速安装Apache Superset

750d291cd82220ddc3935fd30baebe73.png

Apache Superset 团队说目前不支持Windows平台下的安装, 经过一番研究,我找到了Windows 10 下快速安装的方法,这里分享下细节。

  1. 下载并安装Miniconda 
    当然你也可以选择Anaconda.

    ed05b51bb008be58fe0cbf58238433f0.png

  2. 安装 python-geohash

    conda install -c conda-forge python-geohash -y

    如果使用pip安装, 会有如下报错:

    error: Microsoft Visual C++ 14.0 is required.
    Get it with "Microsoft Visual C++ Build Tools":
    http://landinghub.visualstudio.com/visual-cpp-build-tools

    为了解决这个问题,你需要安装Windows Compiler(非常非常大).

  3. 把OpenSSL 从1.1.1e 降级到 1.1.1d , 

    conda install -c conda-forge openssl==1.1.1d -y

    不然, 你可能会碰到如下错误(如果你要执行superset load_examples),

    [ERROR] Execution failed: [SSL: KRB5_S_TKT_NYV] unexpected eof
    while reading (_ssl.c:2555)
  4. 使用pip安装Apache Superset

    pip install apache-superset

    conda forge 没有较新版本的Apache Superset

    8fd3afc0eb5199c3797cda175d4f8c44.png

  5. 创建批处理脚本superset.cmd,保存在与python.exe相同目录下,

    @set FLASK_APP=superset
    @python "%~dp0Scripts\superset" %*

    如果你使用powershell 而不是command prompt, 需要替换变量声明方式 

    set FLASK_APP=superset

    为 

    $env:FLASK_APP = "superset"
  6. 初始化数据库

    superset db upgrade
  7. 创建管理员用户 

    flask fab create-admin
  8. 导入例子数据

    superset load_examples
  9. 创建默认角色和权限

    superset init
  10. 运行superset

    superset run -p 8088 --with-threads --reload --debugger
  11. 用你喜欢的浏览器打开 http://localhost:8088。

参考,

  • https://wiki.python.org/moin/WindowsCompilers

  • https://www.youtube.com/watch?v=7tizWNRdKrQ

  • http://marine.copernicus.eu/faq/what-are-the-motu-and-python-requirements/

  • https://anaconda.org/search?q=superset

  • http://lab.alitrack.com/blog/install-apache-superset-on-windows-10-without-admin-rights/

  • http://lab.alitrack.com/blog/windows-10-%e4%b8%8b%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85apache-superset/

  • https://github.com/alitrack/superset_Windows


联系方式:

QQ:23683716

微博:一起大数据 https://weibo.com/17bigdata

微信:L23683716(加微信交流群请加小编微信)

求职招聘,技术交流请加数据圈星球:

7feadb10b121dd72e3952297ed56e095.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值