2

I have installed superset using pip install superset command. Then i try to superset db upgrade but it's saying superset: command not found

Can anyone help me here?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Subhash Choudhari
  • 73
  • 1
  • 2
  • 12

8 Answers8

4

From Superset documentation you should do this:

# 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

# Start the web server on port 8088, use -p to bind to another port
superset runserver

Note: Only run this command in a virtual environment, fabmanager will not work well if you don't do this.

TylerH
  • 20,799
  • 66
  • 75
  • 101
romulomadu
  • 627
  • 6
  • 9
4

FYI now the PyPI package is apache-superset, so pip install apache-superset

mistercrunch
  • 1,119
  • 8
  • 9
3

Go through the superset documentation here.

First I was trying without installing superset package in my virtual environment. After successful installation it's working fine.

ZF007
  • 3,708
  • 8
  • 29
  • 48
Subhash Choudhari
  • 73
  • 1
  • 2
  • 12
2

For me in Mac OSX launching this command

virtualenv venv . ./venv/bin/activate

before installing superset:

pip install superset

worked perfectly.

Alessandro Mattiuzzi
  • 2,309
  • 2
  • 18
  • 24
2

I had the same issue, so I went to the path of superset and did this.

something like this: ~/.local/bin/superset db upgrade

TylerH
  • 20,799
  • 66
  • 75
  • 101
jithin
  • 61
  • 1
  • 1
  • 6
1

As this error just occurred to me, I have finally find a solution based on @sammy ongaya. First need to cd to your virtenvs fold's \Scripts\, like me using conda, so it's under C:\Anaconda3\envs\python35\Scripts. And then just put python before all command, like python superset db upgrade.

After that everything should work. Hope to help someone looking for windows Superset error.

moxiao
  • 11
  • 2
0

Add python before superset db upgrade command. Your command should be python superset db upgrade. Whenever you run a superset command try adding the python before your command.

TylerH
  • 20,799
  • 66
  • 75
  • 101
sammy ongaya
  • 1,313
  • 1
  • 15
  • 14
0

@moxiao was right, to cd to your virtenvs fold's *\Scripts* use cd venv\Scripts\ after

virtualenv venv
venv\Scripts\activate
pip install superset
Gilles-Antoine Nys
  • 1,481
  • 16
  • 21