superset安装总结

接着上一篇的安装过程,一把辛酸诶。
这个superset在windows系统上安装并不友好,,网上的大部分安装都是老版本的,,现在的版本0.34的使用flask启动。
我觉得使用豆瓣镜像直接安装,然后再配套使用相应的包,,结合这个GitHub上的window10的安装。。应该会成功的吧。。安装软件成功 了, 还只是第一步,接下来。。。。后面遇到坑了,,我再说吧。。
https://gist.github.com/mark05e/d9cccae129dd11a21d7219eddd7d9923

对了,如果你对superset,Python做可视化有很大的兴趣,这里有个QQ群:895772133 欢迎大家加入学习交流。。我也是网上搜索看的QQ群号,,里面有学习资料。。下面的安装文档,也是群里大佬免费提供的,,,谢谢。。

附:我是按照这个安装的,,大家可以自行参考

windows server 2008 R2 + 3.7环境下superset安装过程实战(环境/编译/发布/运行)

感谢以下博主贡献
https://www.jianshu.com/p/c751278996f8

https://blog.csdn.net/gz15126051420/article/details/78258620

https://blog.csdn.net/draven1122/article/details/78342228

https://www.cnblogs.com/Jonecmnn/p/7417498.html

安装过程:

#安装Microsoft Visual C++ Build Tools
https://pan.baidu.com/s/16jVqbrHALNyammOoGKuJjQ
提取码:u2v6
#安装MSVC v140 -VS 2015 C++ 生成工具(v14.00)


#下载源代码
git clone https://github.com/apache/incubator-superset.git


https://nodejs.org/en/download/(下载安装node.js)
https://yarnpkg.com/zh-Hans/docs/install (下载安装yarn,依赖node.js)


#安装环境
pip install -r C:\Users\Administrator\Desktop\request-list.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

#request-list.txt内容
virtualenv
backoff
bleach
click
celery
colorama
contextlib2
croniter
cryptography
flask
flask-appbuilder
flask-caching
flask-compress
flask-talisman
flask-wtf
flask-migrate
gunicorn
geohash
geopy
humanize
isodate
markdown
msgpack
polyline
prison
pandas
parsedatetime
pathlib2
pyarrow
pyyaml
python-geohash
python-dotenv
sasl
simplejson
urllib3
walk

#从https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml下载sasl-0.2.1-cp37-cp37m-win_amd64.whl
pip install "C:\Users\Administrator\Downloads\sasl-0.2.1-cp37-cp37m-win_amd64.whl"


cd  incubator-superset

#创建环境
virtualenv venv

venv\Scripts\activate  (ps:C:\Users\Administrator\incubator-superset\venv\Scripts\activate.bat)

cd superset/assets





将C:\Program Files (x86)\Yarn拷贝到C:\Users\Administrator\AppData\Local\Programs\Yarn\bin
(安装后PATH的默认参数C:\Users\Administrator\AppData\Local\Yarn\bin,
修改为C:\Users\Administrator\AppData\Local\Programs\Yarn\bin)


#编译
yarn

yarn run build

cd ../../

#编译(编译之后的效果同 pip install superset )
python setup.py install


#手动在"C:\\Users\\Administrator\\incubator-superset\\superset\\static\\assets\\"下创建空白文件version_info.json


flask fab create-admin

(venv) C:\Users\Administrator\incubator-superset>flask fab create-admin
Username [admin]: admin
User first name [admin]: ye
User last name [user]: yang
Email [admin@fab.org]: 81436962@qq.com
Password:111
Repeat for confirmation:111
INFO:root:logging was configured successfully
Recognized Database Authentications.
Admin User admin created.


flask fab create-permissions

(venv) C:\Users\Administrator\incubator-superset>flask fab create-permissions
INFO:root:logging was configured successfully
Created all permissions

flask fab create-db

(venv) C:\Users\Administrator\incubator-superset>flask fab create-db
INFO:root:logging was configured successfully
DB objects created


cd superset/bin

python superset db upgrade

python superset load_examples

python superset load_test_users

python superset init


flask run

(venv) C:\Users\Administrator\incubator-superset>flask run
 * Serving Flask app "superset.app:create_app()" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Restarting with stat
INFO:root:logging was configured successfully
 * Debugger is active!
 * Debugger PIN: 167-347-427
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
INFO:root:logging was configured successfully

#登陆进去首页空白

pip install superset

#默认安装到 Python\Lib\site-packages\superset\static
#拷贝 C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\superset\static到C:\Users\Administrator\incubator-superset\superset\static

完成

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_43351935

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值