Steps to install superset under win10 system

Steps to install superset under win10 system

Superset is a lightweight self-service BI framework with elegant interface and dynamic data generation based on data tables as its main features.

1. Environment

Python 3.7 on Windows 10 64-bit

2. Installation steps

Install Python

It is recommended to install Python 3.7 version, Python official website: https://www.python.org/downloads/release/python-373/

Download 64-bit Python and download python-3.7.3-amd64.exe. You can directly use the exe installation package. During the installation process, select Add to Environment Variables.

Install VS2015

Some libraries that Superset depends on need to be compiled using Microsoft Visual C++ 2010.

Directly install Visual C++ 2015 Build Tools: http://xiazai.jb51.net/201912/yuanma/VisualBuild_Tools.rar

Install superset

First cmd to enter the dos interface

(1) pip install virtualenv

Use virtualenv to create a working directory on drive D, for example: D:\vir_env

Enter the following command in CMD:

d:
cd D:\vir_env
virtualenv env

Activate environment: env\Scripts\activate

insert image description here

(2) Download sasl according to the python version and install it. Download address: http://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl

Select the appropriate version to download. For example, if the currently installed Python is version 3.7 and the system is 64-bit, download sasl-0.2.1-cp37-cp37m-win_amd64.whl.

Be sure to check the version here, otherwise the installation will fail and an error will be reported (sasl.h cannot be found). This article installs 3.7;

Copy it to the D:\vir_env path and execute the command

pip install sasl-0.2.1-cp37-cp37m-win_amd64.whl

(3) Install superset

pip install superset

Possible problem 1:

insert image description here

Solution:

a. Find the corresponding package in https://www.lfd.uci.edu/~gohlke/pythonlibs/, the py version and the system version must match, and download it to the D:\vir_env directory

b. Install the corresponding whl file

pip install filename

Possible problem 2:

error: could not create 'build\bdist.win-amd64\wheel.\superset\static\assets\dist\vendors-deckgl\layers\arc-deckgl\layers\geojson-deckgl\layers\grid-deckgl\layers\hex-deckgl\layers\p-39b91eb9.81565bc93ff56be4e334.chunk.js': No such file or directory ---------------------------------------- ERROR: Failed building wheel for superset

Solution:

Enable long path support on Windows:

Open the registry editor: regedit

Find the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSytem

Find the following key value: LongPathsEnabled

Change the value to 1: The default is 0, which is not enabled.

insert image description here

(4) Create an administrator account

fabmanager create-admin --app superset

Possible problems: Error Was unable to import superset Error: cannot import name '_maybe_box_datetimelike'

This is caused by the pandas library version being too high. You need to install a lower version of the pandas library.

Solution:

a. pip uninstall pandas

b. pip install pandas==0.23.4

Create Success

insert image description here

(5) Set the working directory

cd D:\vir_env\env\Lib\site-packages\superset\bin

(6) Initialize the database

Python superset db upgrade

Possible problems

InvalidRequestError: Can't determine which FROM clause to join from, there are multiple FROMS which can join to this entity. Try adding an explicit ON clause to help resolve the ambiguity. 报错误.png

Solution:

This is caused by the SQLAlchemy library version being too high. You need to install a lower version of the SQLAlchemy library.

pip uninstall SQLAlchemypip install SQLAlchemy==1.3.5

Then re-run

Python superset db upgrade

(7) Load test example

Python superset load_examples

Possible problem 1:

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it.

Solution: Open the Network and Sharing Center, click Internet Options, select LAN Settings in Connections, check Automatically detect settings, and then confirm;

Possible problem 2:

It may fail due to network conditions. Just switch networks and try a few more times.

(8) Initialize roles and permissions

Python superset init

(9) Enable the service

Python superset runserver -d

Possible problems:

Error: No such command "runserver".

Solution:

Start it with the following command:

Python superset run -p 8088

(10) Open http://localhost:8088 and log in using the username and password you set previously;

Summarize

The above are the steps for installing superset under win10 system introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Detailed tutorial on installation and deployment of superset in Linux and Windows

<<:  Detailed explanation of the principle and example of the new operator in JavaScript

>>:  Mini Program Development to Implement Unified Management of Access_Token

Recommend

Computed properties and listeners details

Table of contents 1. Calculated properties 1.1 Ba...

Solution to Mysql binlog log file being too large

Table of contents 1. Related binlog configuration...

A brief discussion on whether MySQL can have a function similar to Oracle's nvl

Use ifnull instead of isnull isnull is used to de...

Docker port mapping and external inaccessibility issues

The Docker container provides services and listen...

Using JS to implement a rotating Christmas tree in HTML

<!DOCTYPE HEML PUBLIC> <html> <hea...

Examples of using Docker and Docker-Compose

Docker is an open source container engine that he...

Detailed explanation of nginx anti-hotlink and anti-crawler configuration

Create a new configuration file (for example, go ...

Comprehensive understanding of HTML Form elements

As shown below: XML/HTML CodeCopy content to clip...

Solution to the problem that Java cannot connect to MySQL 8.0

This article shares a collection of Java problems...

Navicat cannot create function solution sharing

The first time I wrote a MySQL FUNCTION, I kept g...

Detailed explanation of process management in Linux system

Table of contents 1. The concept of process and t...

How to run MySQL using docker-compose

Directory Structure . │ .env │ docker-compose.yml...

JavaScript Dom Object Operations

Table of contents 1. Core 1. Get the Dom node 2. ...