This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Caravel with virtualenv ===== This guide cover the installation of Caravel in Debian GNU/Linux with virtualenv for Python 3.4+. <code> sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip python3-virtualenv libsasl2-dev libldap2-dev virtualenv </code> <code> useradd -d /opt/superset -s /bin/bash superset mkdir /opt/superset chown superset.superset /opt/superset cd /opt virtualenv --python=/usr/bin/python3.5 superset cd /opt/superset source bin/activate pip install superset pip install superset[cors] superset db upgrade superset load_examples superset init </code> ==== Manually start ==== <code> cd /opt/superset/lib/python3.5/site-packages nohup gunicorn --certfile=/opt/superset/fullchain.pem --keyfile=/opt/superset/privkey.pem -b 10.6.30.150:8015 superset:app & </code> ==== Upgrade ==== <code> wget https://raw.githubusercontent.com/apache/incubator-superset/master/requirements.txt pip install -r requirements.txt pip install superset --upgrade superset db upgrade superset init </code> ==== Systemd ==== <code> [Unit] Description=Superset Virtualenv service After=network.target [Service] User=superset Group=superset Environment=VIRTUAL_ENV=/opt/superset Environment=PATH=$VIRTUAL_ENV/bin:$PATH ExecStart=/bin/bash -c "cd /opt/superset/lib/python3.5/site-packages;$VIRTUAL_ENV/bin/gunicorn --certfile=/opt/superset/fullchain.pem --keyfile=/opt/superset/privkey.pem -b 10.6.30.150:8015 superset:app" Restart=always [Install] WantedBy=multi-user.target </code> ==== References ==== * https://virtualenv.pypa.io/en/stable/development/ * http://airbnb.io/caravel/installation.html