问题
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?
回答1:
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.
回答2:
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.
回答3:
For me in Mac OSX launching this command
virtualenv venv . ./venv/bin/activate
before installing superset:
pip install superset
worked perfectly.
回答4:
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.
回答5:
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.
回答6:
@moxiao was right, to cd
to your virtenvs
fold's *\Scripts* use cd venv\Scripts\
after
virtualenv venv
venv\Scripts\activate
pip install superset
来源:https://stackoverflow.com/questions/44513893/superset-command-not-found