Centos 6 安装superset 及遇到的一些坑

参考文档见官网;地址如下连接

https://superset.incubator.apache.org/installation.html


sudo yum upgrade python-setuptools -y 

sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel -y  


curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

检查 python 版本
[[email protected] ~]# python -V 
Python 2.7.5

将python 版本升级到 python 3.5.4 


# 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



[[email protected] Python-3.5.4]# fabmanager create-admin --app superset 
Username [admin]: admin
User first name [admin]: admin
User last name [user]: admin
Email [[email protected]]: admin
Password: 
Repeat for confirmation: 
Was unable to import superset Error: No module named 'pysqlite2'


降级python版本 依然没有解决这个问题

[[email protected] Python-3.5.4]# mv /usr/bin/python.bak /usr/bin/python
mv: overwrite `/usr/bin/python'? yes
[[email protected] Python-3.5.4]# 
[[email protected] Python-3.5.4]# 
[[email protected] Python-3.5.4]# python -V 
Python 2.6.6
[[email protected] Python-3.5.4]# 
[[email protected] Python-3.5.4]# vim /usr/bin/yum
[[email protected] Python-3.5.4]# 
[[email protected] Python-3.5.4]# 
[[email protected] Python-3.5.4]# python ez_setup.py
Setuptools version 0.6c11 or greater has been installed.

(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)


接着按照官网的步骤



[[email protected] ~]# pip install virtualenv 
[[email protected] ~]# virtualenv venv 
New python executable in /root/venv/bin/python
Installing setuptools, pip, wheel...done.
[[email protected] ~]# . ./venv/bin/activate  
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# 
(venv) [[email protected] ~]# pip install 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



http://192.168.137.151:8088/login/

Centos 6 安装superset 及遇到的一些坑



Centos 6 安装superset 及遇到的一些坑