Foreword
Recent want to use what Superset, this is an open source project, you can generate graphs directly by writing sql, sometimes for some more time chart needs to be used on.
Superset is open source BI data analysis and visualization platform (formerly known as Caravel, Panoramix), the tool main features are self-analysis by the Airbnb (well-known online home short rental company), custom dashboards, analysis results visualization (export), user / role access control, also incorporates a SQL editor, can be a SQL editor query, the original visual analysis used to support the Druid, the development of the back to support a variety of relational databases and big data computing framework, such as: mysql, oracle, Postgres, Presto, sqlite, Redshift, Impala, SparkSQL, Greenplum, MSSQL.
http://superset.apache.org/tutorial.html
Installation and configuration of windows
superset official website have installed Tutorial: Portal
's official website shows that the current system is no official support for Windows, but in fact can be installed successfully, if it is installed under the windows, then use Python installation.
My environment is: Windows 7 64-Wei
Here are some pre-preparation:
Installing Python
I installed the Python 3.6 version. Recommended version a little higher, a variety of coding problems Python 2.7 version exists on the windows.
1 |
F:\>python --version |
Installation virtualenv
virtualenv is used to create a "quarantine" for the application of a Python runtime environment
1 |
F:\>pip install virtualenv |
Use virtualenv. First established in the D drive d: \ pycharm \ superset directory.
Create a virtual environment: virtualenv env
activate, enable virtual environment (must use backslashes): env \ Scripts \ of an activate
1 |
D:\>md pycharm |
Of course, if you want to leave behind a virtual environment is this:
(env) D: \ PyCharm \ superset> env \ Scripts \ deactivate
Installation superset
1 |
(env) D:\pycharm\superset>pip install superset |
Looked at is less visualstudio components, so I visualstudio 2015 version of reinstalling a bit.
When the vs2015 put something, I tried it again. Found or an error, this error is this:
1 |
error: [WinError . 3] system can not find the specified path. : 'C: \\ Program Files (x86) in the Microsoft SDKs \\ \\ lib \\ Windows \\ V8.1' |
It looks less like a Python-geohash library. Then I go directly to this place equipment: https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-geohash
here, there is one detail, it is to install the corresponding version of Python packages, such as my 3.6 , then this would correspond Download: python_geohash-0.8.5-CP36-cp36m-win32.whl if the downloaded version does not match, it would report this error: xxxx iS a Supported Wheel not ON the this Platform.
1 |
(env) D:\pycharm\superset>pip install C:\Users\admin\Downloads\python_geohash-0.8.5-cp36-cp36m-win32.whl |
This installed, the next re-install it:
1 |
(env) D:\pycharm\superset>pip install superset |
This time the installation was successful.
Configuration
Then you configure
1 |
# Create an administrator account |
This time on the configuration finished, then open the browser to view the login page: HTTP: // localhost: 8088
1 |
(env) D:\pycharm\superset\env\Lib\site-packages\superset\bin>Python superset runserver -d |