Apache Superset 团队说目前不支持Windows平台下的安装, 经过一番研究,我找到了Windows 10 下快速安装的方法,这里分享下细节。
下载并安装Miniconda
当然你也可以选择Anaconda.安装 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(非常非常大).
把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)使用pip安装Apache Superset
pip install apache-superset
conda forge 没有较新版本的Apache Superset
创建批处理脚本superset.cmd,保存在与python.exe相同目录下,
@set FLASK_APP=superset
@python "%~dp0Scripts\superset" %*如果你使用powershell 而不是command prompt, 需要替换变量声明方式
set FLASK_APP=superset
为
$env:FLASK_APP = "superset"
初始化数据库
superset db upgrade
创建管理员用户
flask fab create-admin
导入例子数据
superset load_examples
创建默认角色和权限
superset init
运行superset
superset run -p 8088 --with-threads --reload --debugger
用你喜欢的浏览器打开 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(加微信交流群请加小编微信)
求职招聘,技术交流请加数据圈星球: