1. Install Windows c++ build tool download address

  2. Home =>PowershellPrompt install=>PowershellPrompt Launch install=>PowershellPrompt Launch

  3. To create virtual environments, always use 3.7, regardless of the python version installed externally

Conda create -n superset python=3.7Copy the code
  1. Activate the virtual environment you just created
   activate supsert
Copy the code
  1. The activation error in the previous step is as follows

  1. It doesn’t matter, we switch from the Main Anaconda screen by selecting Superset and then going to the PowershellPrompt

7. Install superset and related dependencies

PIP install flask- AppBuilder PIP install Werkzeug ==0.16.1 PIP install flask-jwt-extended==3.18.1 PIP install flask==0.12.5 PIP install sqlalchemy==1.2.18 PIP install superset==0.28.1//Copy the code

PIP install superset==0.28.1 Microsoft Visual C++ 14.0 is required

Overrides the library for installing a lower version

PIP install pandas = = 0.23.4Copy the code
  1. Go to the bin directory of superset (the default installation directory I use here, depending on my own installation path)
cd C:\ProgramData\Anaconda3\envs\superset\Lib\site-packages\superset\bin
Copy the code

After entering the directory, run the command

Create a user

fabmanager create-admin --app superset
Copy the code

Tips:

Here, you can fill in the password by yourself as prompted. Just remember the username and password you fill in. Repeat for confirmation is to Repeat the password

Initializing the database

python superset db upgrade
python superset init
Copy the code

Start the superset

python superset runserver -d
Copy the code

Indicates successful startup.

Step 4 Enter the Superset platform

Open the address http://127.0.0.1:8088/login/ in your browser

Enter username and password.

So far, superset has been installed successfully.

Refer to relevant articles (sincerely thank you)

Windows install superset and bug pit remember

Visual c++ build tools installation and use