syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
How do I install Quantopian Zipline?

I start this effort by loading this page:

http://continuum.io/downloads

I download the link:
Linux 64-bit — Python 2.7

Then, I should find a large file in ~/Downloads/
dan@hp ~/Downloads $
dan@hp ~/Downloads $ ll Anaconda-2.1.0-Linux-x86_64.sh
-rw-rw-r-- 1 dan dan 353806962 Dec 14 04:28 Anaconda-2.1.0-Linux-x86_64.sh
dan@hp ~/Downloads $
dan@hp ~/Downloads $
I bash it:
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ bash Anaconda-2.1.0-Linux-x86_64.sh 

Welcome to Anaconda 2.1.0 (by Continuum Analytics, Inc.)

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 

===================================
Anaconda END USER LICENSE AGREEMENT
===================================
Anaconda ("the Software Product") and accompanying documentation is
licensed and not sold.  ...

Do you approve the license terms? [yes|no]
[no] >>> yes

Anaconda will now be installed into this location:
/home/dan/anaconda

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify an different location below

[/home/dan/anaconda] >>> 

Do you approve the license terms? [yes|no]
[no] >>> yes

[/home/dan/anaconda] >>> 
PREFIX=/home/dan/anaconda
installing: python-2.7.8-1 ...
installing: conda-3.7.0-py27_0 ...
installing: conda-build-1.8.2-py27_0 ...
installing: _license-1.1-py27_0 ...
installing: abstract-rendering-0.5.1-np19py27_0 ...
installing: argcomplete-0.8.1-py27_0 ...
installing: astropy-0.4.2-np19py27_0 ...
installing: atom-0.3.9-py27_0 ...
installing: beautiful-soup-4.3.2-py27_0 ...
installing: binstar-0.7.1-py27_0 ...
installing: bitarray-0.8.1-py27_0 ...
installing: blaze-0.6.3-np19py27_0 ...
installing: blz-0.6.2-np19py27_0 ...
installing: bokeh-0.6.1-np19py27_0 ...
installing: boto-2.32.1-py27_0 ...
installing: cairo-1.12.2-2 ...
installing: casuarius-1.1-py27_0 ...
installing: cdecimal-2.3-py27_0 ...
installing: cffi-0.8.6-py27_0 ...
installing: chaco-4.4.1-np19py27_0 ...
installing: colorama-0.3.1-py27_0 ...
installing: configobj-5.0.6-py27_0 ...
installing: cryptography-0.5.4-py27_0 ...
installing: curl-7.38.0-0 ...
installing: cython-0.21-py27_0 ...
installing: cytoolz-0.7.0-py27_0 ...
installing: datashape-0.3.0-np19py27_1 ...
installing: dateutil-2.1-py27_2 ...
installing: decorator-3.4.0-py27_0 ...
installing: docutils-0.12-py27_0 ...
installing: dynd-python-0.6.5-np19py27_0 ...
installing: enable-4.3.0-np19py27_2 ...
installing: enaml-0.9.8-py27_0 ...
installing: flask-0.10.1-py27_1 ...
installing: freetype-2.4.10-0 ...
installing: future-0.13.1-py27_0 ...
installing: futures-2.1.6-py27_0 ...
installing: gevent-1.0.1-py27_0 ...
installing: gevent-websocket-0.9.3-py27_0 ...
installing: greenlet-0.4.4-py27_0 ...
installing: grin-1.2.1-py27_1 ...
installing: h5py-2.3.1-np19py27_0 ...
installing: hdf5-1.8.13-0 ...
installing: ipython-2.2.0-py27_0 ...
installing: ipython-notebook-2.2.0-py27_0 ...
installing: ipython-qtconsole-2.2.0-py27_0 ...
installing: itsdangerous-0.24-py27_0 ...
installing: jdcal-1.0-py27_0 ...
installing: jinja2-2.7.3-py27_1 ...
installing: jpeg-8d-0 ...
installing: kiwisolver-0.1.3-py27_0 ...
installing: lcms-1.19-0 ...
installing: libdynd-0.6.5-0 ...
installing: libffi-3.0.13-0 ...
installing: libpng-1.5.13-1 ...
installing: libsodium-0.4.5-0 ...
installing: libtiff-4.0.2-1 ...
installing: libxml2-2.9.0-0 ...
installing: libxslt-1.1.28-0 ...
installing: llvm-3.3-0 ...
installing: llvmpy-0.12.7-py27_0 ...
installing: lxml-3.4.0-py27_0 ...
installing: markupsafe-0.23-py27_0 ...
installing: matplotlib-1.4.0-np19py27_0 ...
installing: mock-1.0.1-py27_0 ...
installing: mpi4py-1.3-py27_0 ...
installing: mpich2-1.4.1p1-0 ...
installing: multipledispatch-0.4.7-py27_0 ...
installing: networkx-1.9.1-py27_0 ...
installing: nltk-3.0.0-np19py27_0 ...
installing: nose-1.3.4-py27_0 ...
installing: numba-0.14.0-np19py27_0 ...
installing: numexpr-2.3.1-np19py27_0 ...
installing: numpy-1.9.0-py27_0 ...
installing: openpyxl-1.8.5-py27_0 ...
installing: openssl-1.0.1h-1 ...
installing: pandas-0.14.1-np19py27_0 ...
installing: patsy-0.3.0-np19py27_0 ...
installing: pep8-1.5.7-py27_0 ...
installing: pil-1.1.7-py27_1 ...
installing: pip-1.5.6-py27_0 ...
installing: pixman-0.26.2-0 ...
installing: ply-3.4-py27_0 ...
installing: psutil-2.1.1-py27_0 ...
installing: py-1.4.25-py27_0 ...
installing: py2cairo-1.10.0-py27_1 ...
installing: pycosat-0.6.1-py27_0 ...
installing: pycparser-2.10-py27_0 ...
installing: pycrypto-2.6.1-py27_0 ...
installing: pycurl-7.19.5-py27_1 ...
installing: pyface-4.4.0-py27_0 ...
installing: pyflakes-0.8.1-py27_0 ...
installing: pygments-1.6-py27_0 ...
installing: pyopenssl-0.14-py27_0 ...
installing: pyparsing-2.0.1-py27_0 ...
installing: pyqt-4.10.4-py27_0 ...
installing: pytables-3.1.1-np19py27_1 ...
installing: pytest-2.6.3-py27_0 ...
installing: pytz-2014.7-py27_0 ...
installing: pyyaml-3.11-py27_0 ...
installing: pyzmq-14.3.1-py27_0 ...
installing: qt-4.8.5-0 ...
installing: readline-6.2-2 ...
installing: redis-2.6.9-0 ...
installing: redis-py-2.9.1-py27_0 ...
installing: requests-2.4.1-py27_0 ...
installing: rope-0.9.4-py27_1 ...
installing: runipy-0.1.1-py27_0 ...
installing: scikit-image-0.10.1-np19py27_0 ...
installing: scikit-learn-0.15.2-np19py27_0 ...
installing: scipy-0.14.0-np19py27_0 ...
installing: setuptools-5.8-py27_0 ...
installing: sip-4.15.5-py27_0 ...
installing: six-1.8.0-py27_0 ...
installing: sockjs-tornado-1.0.1-py27_0 ...
installing: sphinx-1.2.3-py27_0 ...
installing: spyder-2.3.1-py27_0 ...
installing: spyder-app-2.3.1-py27_0 ...
installing: sqlalchemy-0.9.7-py27_0 ...
installing: sqlite-3.8.4.1-0 ...
installing: ssl_match_hostname-3.4.0.2-py27_0 ...
installing: statsmodels-0.5.0-np19py27_2 ...
installing: sympy-0.7.5-py27_0 ...
installing: system-5.8-1 ...
installing: theano-0.6.0-np19py27_0 ...
installing: tk-8.5.15-0 ...
installing: toolz-0.7.0-py27_0 ...
installing: tornado-4.0.2-py27_0 ...
installing: traits-4.4.0-py27_0 ...
installing: traitsui-4.4.0-py27_0 ...
installing: ujson-1.33-py27_0 ...
installing: unicodecsv-0.9.4-py27_0 ...
installing: util-linux-2.21-0 ...
installing: werkzeug-0.9.6-py27_1 ...
installing: xlrd-0.9.3-py27_0 ...
installing: xlsxwriter-0.5.7-py27_0 ...
installing: xlwt-0.7.5-py27_0 ...
installing: yaml-0.1.4-0 ...
installing: zeromq-4.0.4-0 ...
installing: zlib-1.2.7-0 ...
installing: anaconda-2.1.0-np19py27_0 ...
installing: _cache-0.0-x0 ...
Python 2.7.8 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Do you wish the installer to prepend the Anaconda install location
to PATH in your /home/dan/.bashrc ? [yes|no]
[no] >>> yes

Prepending PATH=/home/dan/anaconda/bin to PATH in /home/dan/.bashrc
A backup will be made to: /home/dan/.bashrc-anaconda.bak


For this change to become active, you have to open a new terminal.

Thank you for installing Anaconda!
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ bash
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ which python
/home/dan/anaconda/bin/python
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ python
Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
>>> 
>>> quit()
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ 

dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ conda install -c Quantopian zipline
Fetching package metadata: ...
Solving package specifications: .
Package plan for installation in environment /home/dan/anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cairo-1.12.18              |                0         593 KB
    conda-3.7.3                |           py27_0         156 KB
    logbook-0.6.0              |           py27_0          77 KB
    matplotlib-1.4.2           |       np19py27_0        44.8 MB
    numpy-1.9.1                |           py27_0         7.7 MB
    openssl-1.0.1j             |                0         2.5 MB
    pandas-0.15.2              |       np19py27_0         9.9 MB
    py2cairo-1.10.0            |           py27_2          36 KB
    python-2.7.9               |                0        13.4 MB
    pytz-2014.9                |           py27_0         175 KB
    requests-2.5.0             |           py27_0         586 KB
    setuptools-7.0             |           py27_0         436 KB
    zipline-0.7.0              |       np19py27_0         240 KB
    ------------------------------------------------------------
                                           Total:        80.5 MB

The following NEW packages will be INSTALLED:

    logbook:    0.6.0-py27_0     
    zipline:    0.7.0-np19py27_0 

The following packages will be UPDATED:

    cairo:      1.12.2-2          --> 1.12.18-0        
    conda:      3.7.0-py27_0      --> 3.7.3-py27_0     
    matplotlib: 1.4.0-np19py27_0  --> 1.4.2-np19py27_0 
    numpy:      1.9.0-py27_0      --> 1.9.1-py27_0     
    openssl:    1.0.1h-1          --> 1.0.1j-0         
    pandas:     0.14.1-np19py27_0 --> 0.15.2-np19py27_0
    py2cairo:   1.10.0-py27_1     --> 1.10.0-py27_2    
    python:     2.7.8-1           --> 2.7.9-0          
    pytz:       2014.7-py27_0     --> 2014.9-py27_0    
    requests:   2.4.1-py27_0      --> 2.5.0-py27_0     
    setuptools: 5.8-py27_0        --> 7.0-py27_0       

Proceed ([y]/n)? 

Proceed ([y]/n)? y

Fetching packages ...
cairo-1.12.18- 100% |####################| Time: 0:00:01 431.54 kB/s
conda-3.7.3-py 100% |####################| Time: 0:00:00 368.86 kB/s
logbook-0.6.0- 100% |####################| Time: 0:00:00 437.84 kB/s
matplotlib-1.4 100% |####################| Time: 0:00:20   2.33 MB/s
numpy-1.9.1-py 100% |####################| Time: 0:00:02   2.81 MB/s
openssl-1.0.1j 100% |####################| Time: 0:00:02   1.05 MB/s
vpandas-0.15.2- 100% |####################| Time: 0:00:02   4.92 MB/s
py2cairo-1.10. 100% |####################| Time: 0:00:00 221.02 kB/s
python-2.7.9-0 100% |####################| Time: 0:00:05   2.41 MB/s
pytz-2014.9-py 100% |####################| Time: 0:00:00 525.92 kB/s
requests-2.5.0 100% |####################| Time: 0:00:00 953.13 kB/s
setuptools-7.0 100% |####################| Time: 0:00:00 824.78 kB/s
zipline-0.7.0- 100% |####################| Time: 0:00:00 683.05 kB/s
Extracting packages ...
[      COMPLETE      ] |######################################| 100%
Unlinking packages ...
[      COMPLETE      ] |######################################| 100%
Linking packages ...
[      COMPLETE      ] |######################################| 100%
dan@hp ~/Downloads $ 
dan@hp ~/Downloads $ 
Quantopian Zipline (Python based algo-trading-backtester) is now installed.


syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me