python cubes
Online Analytical Processing Framework for Python
Cubes is a light-weight Python framework and set of tools for development of reporting and analytical applications, Online Analytical Processing (OLAP), multidimensional analysis and browsing of aggregated data.
Cubes-document:http://pythonhosted.org/cubes
Cubes-github:http://github.com/Stiivi/cubes
windows下的cubes环境准备
- 安装python
2.安装setuptools
- 主页:http://pypi.python.org/pypi/setuptools
- 下载:http://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
cmd 命令行执行
python ez_setup.py |
python setup.py install |
添加环境变量
%PY_HOME%Scripts |
使用:
进入命令行,输入 “pip install package”,package为安装包名称。
比如:pip install sqlalchemy werkzeug jinja2
pip install cubes
其他命令:
pip search
pip help
$ pip install SomePackage
$ pip search “query”
1
$ pip install –upgrade SomePackage
2
$ pip install –upgrade SomePackage==version
补充:
包安装后的py文件路径(Linux):/usr/local/lib/python2.7/dist-packages
(Windows)C:python27libsite-packager
每个安装包都包含两个目录,一个目录是egg.info,另外一个是包的代码;其中,egg.info的解释如下