VM虚拟机中caravel的安装和初始化


环境说明:vmware Workstation 10 +CentOs6.5

一、准备。下载anaconda.

第一步:进入官网(https://www.continuum.io/downloads)下载anaconda。
VM虚拟机中caravel的安装和初始化_第1张图片
第二步:把下载的Anaconda2-4.1.0-Linux-x86.sh放在虚拟机中,并运行。运行的时候,按照相应的提示,输入对应的内容,完成。
VM虚拟机中caravel的安装和初始化_第2张图片

安装的过程中会有提示:


然后输入yes,然后按回车,最后输入yes。
VM虚拟机中caravel的安装和初始化_第3张图片


VM虚拟机中caravel的安装和初始化_第4张图片

完成的时候会有下图的提示:


VM虚拟机中caravel的安装和初始化_第5张图片




二、caravel的安装和初始化。

1、切换到anaconda的bin路径下。

VM虚拟机中caravel的安装和初始化_第6张图片

2、安装caravel。

VM虚拟机中caravel的安装和初始化_第7张图片

详细的安装信息如下:

[root@localhost bin]# ./pip install caravel
Collecting caravel
  Downloading caravel-0.10.0.tar.gz (38.6MB)
    100% |████████████████████████████████| 38.6MB 14kB/s 
Requirement already satisfied (use --upgrade to upgrade): cryptography==1.4 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Collecting flask-appbuilder==1.8.1 (from caravel)
  Downloading Flask-AppBuilder-1.8.1.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 246kB/s 
Collecting flask-cache==0.13.1 (from caravel)
  Downloading Flask-Cache-0.13.1.tar.gz (45kB)
    100% |████████████████████████████████| 51kB 620kB/s 
Collecting flask-migrate==1.5.1 (from caravel)
  Downloading Flask-Migrate-1.5.1.tar.gz
Collecting flask-script==2.0.5 (from caravel)
  Downloading Flask-Script-2.0.5.tar.gz (42kB)
    100% |████████████████████████████████| 51kB 913kB/s 
Collecting flask-testing==0.5.0 (from caravel)
  Downloading Flask-Testing-0.5.0.tar.gz (40kB)
    100% |████████████████████████████████| 40kB 804kB/s 
Collecting humanize==0.5.1 (from caravel)
  Downloading humanize-0.5.1.tar.gz
Collecting gunicorn==19.6.0 (from caravel)
  Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
    100% |████████████████████████████████| 122kB 452kB/s 
Collecting markdown==2.6.6 (from caravel)
  Downloading Markdown-2.6.6.zip (412kB)
    100% |████████████████████████████████| 419kB 359kB/s 
Requirement already satisfied (use --upgrade to upgrade): pandas==0.18.1 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Collecting parsedatetime==2.0.0 (from caravel)
  Downloading parsedatetime-2.0-py2-none-any.whl
Collecting pydruid==0.3.0 (from caravel)
  Downloading pydruid-0.3.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): python-dateutil==2.5.3 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Requirement already satisfied (use --upgrade to upgrade): requests==2.10.0 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Collecting simplejson==3.8.2 (from caravel)
  Downloading simplejson-3.8.2.tar.gz (76kB)
    100% |████████████████████████████████| 81kB 454kB/s 
Requirement already satisfied (use --upgrade to upgrade): sqlalchemy==1.0.13 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Collecting sqlalchemy-utils==0.32.7 (from caravel)
  Downloading SQLAlchemy-Utils-0.32.7.tar.gz (116kB)
    100% |████████████████████████████████| 122kB 417kB/s 
Collecting sqlparse==0.1.19 (from caravel)
  Downloading sqlparse-0.1.19.tar.gz (58kB)
    100% |████████████████████████████████| 61kB 661kB/s 
Requirement already satisfied (use --upgrade to upgrade): werkzeug==0.11.10 in /root/anaconda2/lib/python2.7/site-packages (from caravel)
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.8 in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /root/anaconda2/lib/python2.7/site-packages/setuptools-23.0.0-py2.7.egg (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): ipaddress in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /root/anaconda2/lib/python2.7/site-packages (from cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): colorama>=0.3 in /root/anaconda2/lib/python2.7/site-packages (from flask-appbuilder==1.8.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): click>=3.0 in /root/anaconda2/lib/python2.7/site-packages (from flask-appbuilder==1.8.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): Flask>=0.10 in /root/anaconda2/lib/python2.7/site-packages (from flask-appbuilder==1.8.1->caravel)
Collecting Flask-Babel>=0.10.0 (from flask-appbuilder==1.8.1->caravel)
  Downloading Flask-Babel-0.11.1.tar.gz (40kB)
    100% |████████████████████████████████| 40kB 894kB/s 
Collecting Flask-Login==0.2.11 (from flask-appbuilder==1.8.1->caravel)
  Downloading Flask-Login-0.2.11.tar.gz
Collecting Flask-OpenID>=1.1.0 (from flask-appbuilder==1.8.1->caravel)
  Downloading Flask-OpenID-1.2.5.tar.gz (43kB)
    100% |████████████████████████████████| 51kB 910kB/s 
Collecting Flask-SQLAlchemy==2.0 (from flask-appbuilder==1.8.1->caravel)
  Downloading Flask-SQLAlchemy-2.0.tar.gz (93kB)
    100% |████████████████████████████████| 102kB 475kB/s 
Collecting Flask-WTF>=0.9.1 (from flask-appbuilder==1.8.1->caravel)
  Downloading Flask_WTF-0.12-py2-none-any.whl
Collecting alembic>=0.6 (from flask-migrate==1.5.1->caravel)
  Downloading alembic-0.8.6.tar.gz (961kB)
    100% |████████████████████████████████| 962kB 225kB/s 
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /root/anaconda2/lib/python2.7/site-packages (from pandas==0.18.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /root/anaconda2/lib/python2.7/site-packages (from pandas==0.18.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): pycparser in /root/anaconda2/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography==1.4->caravel)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /root/anaconda2/lib/python2.7/site-packages (from Flask>=0.10->flask-appbuilder==1.8.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in /root/anaconda2/lib/python2.7/site-packages (from Flask>=0.10->flask-appbuilder==1.8.1->caravel)
Requirement already satisfied (use --upgrade to upgrade): Babel>=2.3 in /root/anaconda2/lib/python2.7/site-packages (from Flask-Babel>=0.10.0->flask-appbuilder==1.8.1->caravel)
Collecting python-openid>=2.0 (from Flask-OpenID>=1.1.0->flask-appbuilder==1.8.1->caravel)
  Downloading python-openid-2.2.5.tar.gz (301kB)
    100% |████████████████████████████████| 307kB 339kB/s 
Collecting WTForms (from Flask-WTF>=0.9.1->flask-appbuilder==1.8.1->caravel)
  Downloading WTForms-2.1.zip (553kB)
    100% |████████████████████████████████| 563kB 325kB/s 
Collecting Mako (from alembic>=0.6->flask-migrate==1.5.1->caravel)
  Downloading Mako-1.0.4.tar.gz (574kB)
    100% |████████████████████████████████| 583kB 250kB/s 
Collecting python-editor>=0.3 (from alembic>=0.6->flask-migrate==1.5.1->caravel)
  Downloading python-editor-1.0.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /root/anaconda2/lib/python2.7/site-packages (from Jinja2>=2.4->Flask>=0.10->flask-appbuilder==1.8.1->caravel)
Building wheels for collected packages: caravel, flask-appbuilder, flask-cache, flask-migrate, flask-script, flask-testing, humanize, markdown, pydruid, simplejson, sqlalchemy-utils, sqlparse, Flask-Babel, Flask-Login, Flask-OpenID, Flask-SQLAlchemy, alembic, python-openid, WTForms, Mako, python-editor
  Running setup.py bdist_wheel for caravel ... done
  Stored in directory: /root/.cache/pip/wheels/7f/41/77/522b4e218a43b790f315dac6a6bd6c17712fd75d19f3cf7cbe
  Running setup.py bdist_wheel for flask-appbuilder ... done
  Stored in directory: /root/.cache/pip/wheels/44/44/68/dee588e68758ac84a82b3feb0ae59e276068c3c0ed962e352d
  Running setup.py bdist_wheel for flask-cache ... done
  Stored in directory: /root/.cache/pip/wheels/d3/ea/07/db4bcd93163f4ac63974a7ce7aa15df9d45cdc9864c8232f9c
  Running setup.py bdist_wheel for flask-migrate ... done
  Stored in directory: /root/.cache/pip/wheels/f4/27/7a/71a28579b86e0b44c9daed9606b06493fca83ab309134f47f7
  Running setup.py bdist_wheel for flask-script ... done
  Stored in directory: /root/.cache/pip/wheels/e2/ea/d8/8d114e46cef819f7d9879504a7f9cb2a88a479af2858223d9f
  Running setup.py bdist_wheel for flask-testing ... done
  Stored in directory: /root/.cache/pip/wheels/78/86/58/0ee4e83b63c89e6ea2ca2b72c7f6d188029c044de44bcb145d
  Running setup.py bdist_wheel for humanize ... done
  Stored in directory: /root/.cache/pip/wheels/d4/80/38/cfbfd95752f71f3812505b948b43383ddc99eedf835fc13b09
  Running setup.py bdist_wheel for markdown ... done
  Stored in directory: /root/.cache/pip/wheels/b4/34/8a/0f8b716aab588dbe90091032f0fd8f98ca2e5e75b222b63659
  Running setup.py bdist_wheel for pydruid ... done
  Stored in directory: /root/.cache/pip/wheels/56/d6/bb/d44af2c1a44047027da8e07871428b83b1cad7128f544d2934
  Running setup.py bdist_wheel for simplejson ... done
  Stored in directory: /root/.cache/pip/wheels/e4/32/71/60b361b0d05433eb9d1dd3d47619931c08cc4e387dc494ad3c
  Running setup.py bdist_wheel for sqlalchemy-utils ... done
  Stored in directory: /root/.cache/pip/wheels/c7/c8/6b/bc0ad35788080a28151431a8ec08c4d52ff6a42919224ff34d
  Running setup.py bdist_wheel for sqlparse ... done
  Stored in directory: /root/.cache/pip/wheels/ef/22/36/1c3c229ebf514a0b534424314151526f782c20c378897bc141
  Running setup.py bdist_wheel for Flask-Babel ... done
  Stored in directory: /root/.cache/pip/wheels/99/65/6c/927249178edfdc24c9cb2d9fcea27f598a73b323a1b5e3a8fc
  Running setup.py bdist_wheel for Flask-Login ... done
  Stored in directory: /root/.cache/pip/wheels/4b/58/2e/fbba562e845fb419f6157a504055275a4d1783a22ebe3124e8
  Running setup.py bdist_wheel for Flask-OpenID ... done
  Stored in directory: /root/.cache/pip/wheels/3b/36/b4/ab2c592ee3b385f9db7fbcdeacdf766bca3dd4b5270d40690e
  Running setup.py bdist_wheel for Flask-SQLAlchemy ... done
  Stored in directory: /root/.cache/pip/wheels/50/1e/1d/4ad1cd5ed55ceba81544b67d7d79544a660a7bde5a43d518d8
  Running setup.py bdist_wheel for alembic ... done
  Stored in directory: /root/.cache/pip/wheels/dd/ea/32/e389366a831f50505aef2220cbb08206f5354581061539ec5a
  Running setup.py bdist_wheel for python-openid ... done
  Stored in directory: /root/.cache/pip/wheels/0a/da/67/e9e68f4b5e03732dc17a545b4ce3ce84b4a9bef67253d4ff72
  Running setup.py bdist_wheel for WTForms ... done
  Stored in directory: /root/.cache/pip/wheels/36/35/f3/7452cd24daeeaa5ec5b2ea13755316abc94e4e7702de29ba94
  Running setup.py bdist_wheel for Mako ... done
  Stored in directory: /root/.cache/pip/wheels/2a/fa/9a/7030d96d3c51f433848e4cd67a353a411ba6deb5c14e150730
  Running setup.py bdist_wheel for python-editor ... done
  Stored in directory: /root/.cache/pip/wheels/c2/49/ce/59657468e42b41eb86aa654650afdf5fe891822a0dc376eebe
Successfully built caravel flask-appbuilder flask-cache flask-migrate flask-script flask-testing humanize markdown pydruid simplejson sqlalchemy-utils sqlparse Flask-Babel Flask-Login Flask-OpenID Flask-SQLAlchemy alembic python-openid WTForms Mako python-editor
Installing collected packages: Flask-Babel, Flask-Login, python-openid, Flask-OpenID, Flask-SQLAlchemy, WTForms, Flask-WTF, flask-appbuilder, flask-cache, Mako, python-editor, alembic, flask-script, flask-migrate, flask-testing, humanize, gunicorn, markdown, parsedatetime, pydruid, simplejson, sqlalchemy-utils, sqlparse, caravel
Successfully installed Flask-Babel-0.11.1 Flask-Login-0.2.11 Flask-OpenID-1.2.5 Flask-SQLAlchemy-2.0 Flask-WTF-0.12 Mako-1.0.4 WTForms-2.1 alembic-0.8.6 caravel-0.10.0 flask-appbuilder-1.8.1 flask-cache-0.13.1 flask-migrate-1.5.1 flask-script-2.0.5 flask-testing-0.5.0 gunicorn-19.6.0 humanize-0.5.1 markdown-2.6.6 parsedatetime-2.0 pydruid-0.3.0 python-editor-1.0.1 python-openid-2.2.5 simplejson-3.8.2 sqlalchemy-utils-0.32.7 sqlparse-0.1.19
[root@localhost bin]# 


3、创建一个名为admin的用户。
输入以下命令:


在创建用户的过程中会有一些输入信息,为了方便,用户名和密码都输入的是admin。
VM虚拟机中caravel的安装和初始化_第8张图片

创建成功的界面如下:
VM虚拟机中caravel的安装和初始化_第9张图片


4、初始化数据库。



5、创建默认的roles和permissions。


6、加载一些数据。



7、启动web服务。


8、在浏览器中输入地址http://localhost:8088/login,会打开一个页面。输入创建admin用户时设置的用户名和密码(admin)。


VM虚拟机中caravel的安装和初始化_第10张图片

进入之后的界面如下:

VM虚拟机中caravel的安装和初始化_第11张图片

接下来,就可以根据自己的情况使用caravel了。


你可能感兴趣的:(python)