Install Softwares - csvsoft/googlecloud GitHub Wiki

Install JDK

sudo apt-get install openjdk-11-jdk

Install Superset

sudo apt-get update sudo apt-get install python3.6 https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

1. Install pyenv python3.6

1.1 Install pyenv Install tools and headers needed to build CPythons (exotic Pythons like PyPy or Jython may have other dependencies). Git is used by pyenv, plus it also enables builds/installs of source branches, so you could install whatever 3.8 is right now, i.e. the master branch of CPython fresh off GitHub:

sudo apt-get install -y git
sudo apt-get install -y build-essential libbz2-dev libssl-dev libreadline-dev \
                        libffi-dev libsqlite3-dev tk-dev

# optional scientific package headers (for Numpy, Matplotlib, SciPy, etc.)
sudo apt-get install -y libpng-dev libfreetype6-dev    

1.2 Run the installer script (installs pyenv and some very useful pyenv plugins by the original author; see here for more)

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

1.3 Add init lines to your ~/.profile or ~/.bashrc (it mentions it at the end of the install script):

export PATH="~/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" Restart your shell (close & open or exec $SHELL) or reload the profile script. (with e.g. source ~/.bashrc)

Done!

1.4 Setting up an environment To not touch the system Python (generally a bad idea; OS-level services might be relying on some specific library versions, etc.) make your own environment, it's easy! Even better, no sudo, for it or pip installs!

Install your preferred Python version (this will download the source and build it for your user, no input required)

pyenv install 3.6.0

Make it a virtualenv so you can make others later if you want

pyenv virtualenv 3.6.0 general

Make it globally active (for your user)

pyenv global general

Do what you want to with the Python/pip, etc. It's yours.

2. Install cryptography

sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev

3. Install superset

# Install superset
pip install superset

# Fix a superset/dataframe.py, _maybedatetime to maybedatetime
# downgrade sqlacademy to 1.2
# pip uninstall sqlacademy
# pip install sqlacademy==1.2

# Create an admin user (you will be prompted to set a 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

# To start a development web server on port 8088, use -p to bind to another port
superset runserver -d