Superset: command not found

折月煮酒 提交于 2019-12-06 13:14:06

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.

Subhash Choudhari

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.

For me in Mac OSX launching this command

virtualenv venv . ./venv/bin/activate

before installing superset:

pip install superset

worked perfectly.

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.

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.

Santhosh M

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

virtualenv venv
venv\Scripts\activate
pip install superset
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!