運行 python --version 或 python2 --version。若是出現版本則表示以安裝
運行 yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel python-setuptools python-virtualenv -y 安裝全部支持及軟件
pip install virtualenv # virtualenv is shipped in Python 3 as pyvenv virtualenv venv . ./venv/bin/activate (關閉deactivate)
pip install --upgrade 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 # To start a development web server on port 8088, use -p to bind to another port superset runserver -d
而後就能夠在http://localhost:8088頁面查看了python
問題一c++
Found existing installation: PyYAML 3.10 Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
方法web
pip install docker-py --ignore-installed PyYAML
問題二sql
Traceback (most recent call last): File "/home/derwin/venvbeta/bin/superset", line 12, in from superset.cli import manager File "/home/derwin/venvbeta/local/lib/python2.7/site-packages/superset/init.py", line 89, in db = SQLA(app) File "/home/derwin/venvbeta/local/lib/python2.7/site-packages/flask_sqlalchemy/init.py", line 677, in init self.Model = self.make_declarative_base(model_class, metadata) TypeError: make_declarative_base() takes at most 2 arguments (3 given)
方法docker
pip uninstall flask-sqlalchemy pip install flask-sqlalchemy==2.1 superset db upgrade
問題三flask
importerror: cannot import name encryptedtype
方法app
查詢資料發現要求 SQLAlchemy-Utils <0.33,使用pip show SQLAlchemy-Utils發現版本爲0.33.2 使用pip install SQLAlchemy-Utils == 0.32.0