参考http://airbnb.io/superset/installation.html
1. 安装环境基于python 2.7或3.4,
2. 安装所需的包
3. 安装python版本切换程序vitralenv
- sudo yum upgrade python-setuptools
- install gcc gcc-c++ libffi-devel pip wheel openssl-libsasl2-openldap-devel
- virtualenv
安装完成之后,可以通过如下的方法切换 python的版本:
在新环境中安装pip
- virtualenv venv
- . ./venv/bin/activate
安装并初始化superset
- install --setuptools pip
- # Install superset
- pip install superset
- # Create an admin user (you will be prompted to set username,first and last name before setting a password)
- fabmanager create-admin --app superset
- # Initialize the database
- superset db upgrade
- # Load some data to play with
- superset load_examples
- # Create default roles and permissions
- superset init
- # Start the web server on port 8088,use -p to bind to another port
- superset runserver
- # To start a development web server,use the -d switch
- # superset runserver -d