슈퍼 셋 학습 중 하나: ubuntu 에 슈퍼 셋 설치
환경: ubuntu 14.04, python 2.7.6
참고:
superset 환경 구축:https://www.2cto.com/kf/201703/616747.html
한 화:http://blog.csdn.net/netbloomy/article/details/60965012
1, 설치 의존
sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev
2, 가상 환경 만 들 기
virtualenv venv_superset
. ./venv_superset/bin/activate
3, superset
pip install --upgrade setuptools pip
pip install superset
4,
fabmanager create-admin --app superset
superset db upgrade
sqlite
superset load_examples
superset
superset init
superset , 8088, superset
superset runserver
https://localhost:8088, 。
5,
wget https://github.com/airbnb/superset/raw/0.15.1/superset/translations/zh/LC_MESSAGES/messages.mo
, ,
:
~/venv_superset/lib/python2.7/site-packages/flask_appbuilder/translations/zh/LC_MESSAGES
messages.mo messages.po, , messages.po
~/venv_superset/lib/python2.7/site-packages/superset$ vi config.py
:
# ---------------------------------------------------
# Babel config for translations
# ---------------------------------------------------
# Setup default language
#BABEL_DEFAULT_LOCALE = 'en'
BABEL_DEFAULT_LOCALE = 'zh'
# Your application default translation path
BABEL_DEFAULT_FOLDER = 'babel/translations'
# The allowed translation for you app
LANGUAGES = {
'en': {'flag': 'us', 'name': 'English'},
'it': {'flag': 'it', 'name': 'Italian'},
# 'fr': {'flag': 'fr', 'name': 'French'},
'zh': {'flag': 'cn', 'name': 'Chinese'},
}
:superset runserver
, 。 , ,