-
In the python official website to download the installation package and install python python. Here install python 3.6.
During installation, remember to check the "increase environmental variables."
-
Download Visual C ++ 2015 Build tool, and installation.
-
Installation virtualenv, used to create a virtual environment where the installation package, python itself does not affect the work environment.
CMD enter the command
pip install virtualenv
-
If you create a directory on the D drive with virtualenv, such as "D: \ vir_env" directory.
In the CMD enter the following command:
d:
CD D: \ vir_env
virtualenv env
Then enter the following command to activate the virtual environmentenv\Scripts\activate
You can see (env) Tips activated
-
Download sasl according python version and install it.
pip install sasl-0.2.1-cp36-cp36m-win_amd64.whl
-
Installation superset.
After installation is complete, the configuration administrator account, set up an account name and password.
fabmanager create-admin --app superset
-
# Set the working directory
cd D:\vir_env\env\Lib\site-packages\superset\bin
Initialize the database
Python superset db upgrade
# Load example
Python superset load_examples
# Initialize roles and permissions
Python superset init
-
Enabled services.
Python superset runserver -d
With a user name and password previously set to open the page 'localhost: 8088' can be.
-
Add the database:
出现ERROR: {"error": "Connection failed!\n\nThe error message returned was:\nNo module named MySQLdb"} 错误
Add database relies on input returns
(venv) [root@cdh2 ~]# pip install mysqlclient
MySQL pip install mysqlclient mysql://
Postgres pip install psycopg2 postgresql+psycopg2://
Presto pip install pyhive presto://
Oracle pip install cx_Oracle oracle://
Redshift pip install sqlalchemy-redshift redshift+psycopg2://
MSSQL pip install pymssql mssql://
Impala pip install impyla impala://
SparkSQL pip install pyhive jdbc+hive://
继续添加数据库,成功
Text editor:
https://jingyan.baidu.com/article/d5a880ebf6d6c613f047cc79.html
https://blog.csdn.net/qq_41623990/article/details/81203841