參考文章:
https://segmentfault.com/a/1190000015811094
https://blog.csdn.net/qq_38486203/article/details/83540814
1. ?確定是否安裝sqlite-devel,可用以下方法測試
????????import sqlite3
????????如果安裝跳過下面2,3,4,5
2. ?執(zhí)行下面命令安裝sqlite-devel
????????yum -y install sqlite-devel
3. ?重新安裝pyenv
????????curl -L?https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer| bash
4. ? 刪掉原有的python環(huán)境并重新安裝
????????pyenv uninstall x.x.x
????????pyenv install 3.6.7
5. ?打包dist(需要安裝node環(huán)境)
????????cd ?/superset/assets/
????????npm run build (如果沒有安裝依賴執(zhí)行: npm install)
6. ?python2安裝Virtualenv(python3自帶 跳轉到7)
????????pip install virtualenv
7. ? 創(chuàng)建ven環(huán)境
????????cd ../incubator-superset
????????python3 -m venv venv
8. ?激活ven環(huán)境
????????source ?venv/bin/activate
9. ?安裝項目依賴包
????????pip install -r requirements.txt
10. ?安裝superset
????????pip install superset
11. ?啟動superset項目
? ? ? ? superset runserver
????????superset runserver -p 8088 (指定端口)
? ? ? ?nohup superset runserver ?> /dev/null 2>&1 &?
12.退出ven環(huán)境命令
? ? ? ? deactivate