How to install the Windows environment superset?

  1. 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."

    How to install the Windows environment superset?

    How to install the Windows environment superset?

  2. Download Visual C ++ 2015 Build tool, and installation.

    How to install the Windows environment superset?

  3. 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

    How to install the Windows environment superset?

  4. 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 environment

    env\Scripts\activate

    You can see (env) Tips activated

    How to install the Windows environment superset?

  5. Download sasl according python version and install it.

    pip install sasl-0.2.1-cp36-cp36m-win_amd64.whl

    How to install the Windows environment superset?

  6. Installation superset.

    After installation is complete, the configuration administrator account, set up an account name and password.

    fabmanager create-admin --app superset

    How to install the Windows environment superset?

  7. # 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

  8. Enabled services.

    Python superset runserver -d

    With a user name and password previously set to open the page 'localhost: 8088' can be.

  9. 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 

Guess you like

Origin blog.csdn.net/mysteryflower/article/details/92829795