03 April 2015

installation

  1. installer

    • double click .pkg file

    • follow the instructions on the screen

  2. command-line installs

    1. on mac os x

       $ bash Anaconda-2.2.0-MacOSX-x86_64.sh
      
    2. on ubuntu 15.04 desktop

       $ bash Anaconda-2.3.0-Linux-x86_64.sh
      
       Welcome to Anaconda 2.3.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. The Software Product is protected by copyright laws
       and treaties, as well as laws and treaties related to other forms of
       intellectual property. Continuum Analytics Inc or its subsidiaries,
       affiliates, and suppliers (collectively "Continuum ") own intellectual
       property rights in the Software Product. The Licensee's ("you" or "your")
       license to download, use, copy, or change the Software Product is subject
       to these rights and to all the terms and conditions of this End User
       License Agreement ("Agreement").
      
       In addition to Continuum-licensed software, the Software product contains a
       collection of software packages from other sources ("Other Vendor Tools").
       Continuum may also distribute updates to these packages on an "as is" basis
       and subject to their individual license agreements.   These licenses are
       available either in the package itself or via request to info@continuum.io.
       Continuum reserves the right to change which Other Vendor Tools are
       provided in Anaconda.
      
       Attribution License
       ===================
       Redistribution and derivative use of Anaconda, with or without
       modification, in source or binary form is explicitly permitted provided
       that:
      
       1. You include a copy of this EULA in all copies of the derived software.
       2. In advertising and labeling material for products built with Anaconda
       you mention that your product either includes or derives from Anaconda.
       "Powered by Anaconda" is the suggested phrase.
      
      
       Export Regulations
       ==================
       Any use or distribution of Anaconda is made under conditions that the user
       and/or distributor is in full compliance with all export and other
       governing laws of the United States of America, including full and ongoing
       compliance with the Export Administration Regulations (EAR) of the United
       States Department of Commerce. See www.commerce.gov/ and
       http://www.bis.doc.gov/index.php/regulations/export-administration-
       regulations-ear.  Use or distribution of Continuum software products to any
       persons, entities or countries currently under US sanctions is strictly
       prohibited.   Anaconda is classified with an ECCN of 5D992 with no license
       required for export to non-embargoed countires.
      
       The United States currently has embargoes against Cuba, Iran, North Korea,
       Sudan and Syria. The exportation, re-exportation, sale or supply, directly
       or indirectly, from the United States, or by a U.S. person wherever
       located, of any Continuum software to any of these countries is strictly
       prohibited without prior authorization by the United States Government  By
       accepting this Agreement, you represent to Continuum that you will comply
       with all applicable export regulations for Anaconda.
      
       No Implied Warranty or Fitness for Any Use
       ==========================================
       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
       IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
       ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
       LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
       CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
       SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
       INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
       CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
       POSSIBILITY OF SUCH DAMAGE
      
       Do you approve the license terms? [yes|no]
       [no] >>> yes
      
       Anaconda will now be installed into this location:
       /home/node2/anaconda
      
         - Press ENTER to confirm the location
         - Press CTRL-C to abort the installation
         - Or specify a different location below
      
       [/home/node2/anaconda] >>>
       PREFIX=/home/node2/anaconda
       installing: python-2.7.10-0 ...
       installing: conda-3.14.1-py27_0 ...
       installing: conda-build-1.14.1-py27_0 ...
       installing: conda-env-2.2.3-py27_0 ...
       installing: _license-1.1-py27_0 ...
       installing: abstract-rendering-0.5.1-np19py27_0 ...
       installing: alabaster-0.7.3-py27_0 ...
       installing: argcomplete-0.8.9-py27_0 ...
       installing: astropy-1.0.3-np19py27_0 ...
       installing: babel-1.3-py27_0 ...
       installing: bcolz-0.9.0-np19py27_0 ...
       installing: beautiful-soup-4.3.2-py27_0 ...
       installing: binstar-0.11.0-py27_0 ...
       installing: bitarray-0.8.1-py27_0 ...
       installing: blaze-core-0.8.0-np19py27_0 ...
       installing: blz-0.6.2-np19py27_1 ...
       installing: bokeh-0.9.0-np19py27_0 ...
       installing: boto-2.38.0-py27_0 ...
       installing: bottleneck-1.0.0-np19py27_0 ...
       installing: cairo-1.12.18-4 ...
       installing: cdecimal-2.3-py27_0 ...
       installing: certifi-14.05.14-py27_0 ...
       installing: cffi-1.1.0-py27_0 ...
       installing: clyent-0.3.4-py27_0 ...
       installing: colorama-0.3.3-py27_0 ...
       installing: configobj-5.0.6-py27_0 ...
       installing: cryptography-0.9.1-py27_0 ...
       installing: curl-7.43.0-0 ...
       installing: cython-0.22.1-py27_0 ...
       installing: cytoolz-0.7.3-py27_0 ...
       installing: datashape-0.4.5-np19py27_0 ...
       installing: decorator-3.4.2-py27_0 ...
       installing: docutils-0.12-py27_0 ...
       installing: dynd-python-0.6.5-np19py27_0 ...
       installing: enum34-1.0.4-py27_0 ...
       installing: fastcache-1.0.2-py27_0 ...
       installing: flask-0.10.1-py27_1 ...
       installing: fontconfig-2.11.1-4 ...
       installing: freetype-2.5.2-2 ...
       installing: funcsigs-0.4-py27_0 ...
       installing: gevent-1.0.1-py27_0 ...
       installing: gevent-websocket-0.9.3-py27_0 ...
       installing: greenlet-0.4.7-py27_0 ...
       installing: grin-1.2.1-py27_1 ...
       installing: h5py-2.5.0-np19py27_3 ...
       installing: hdf5-1.8.15.1-1 ...
       installing: idna-2.0-py27_0 ...
       installing: ipaddress-1.0.7-py27_0 ...
       installing: ipython-3.2.0-py27_0 ...
       installing: ipython-notebook-3.2.0-py27_0 ...
       installing: ipython-qtconsole-3.2.0-py27_0 ...
       installing: itsdangerous-0.24-py27_0 ...
       installing: jdcal-1.0-py27_0 ...
       installing: jedi-0.8.1-py27_0 ...
       installing: jinja2-2.7.3-py27_1 ...
       installing: jpeg-8d-0 ...
       installing: jsonschema-2.4.0-py27_0 ...
       installing: libdynd-0.6.5-0 ...
       installing: libffi-3.0.13-0 ...
       installing: libpng-1.6.17-0 ...
       installing: libsodium-0.4.5-0 ...
       installing: libtiff-4.0.2-1 ...
       installing: libxml2-2.9.2-0 ...
       installing: libxslt-1.1.28-0 ...
       installing: llvmlite-0.5.0-py27_0 ...
       installing: lxml-3.4.4-py27_0 ...
       installing: markupsafe-0.23-py27_0 ...
       installing: matplotlib-1.4.3-np19py27_2 ...
       installing: mistune-0.5.1-py27_1 ...
       installing: mock-1.0.1-py27_0 ...
       installing: multipledispatch-0.4.7-py27_0 ...
       installing: networkx-1.9.1-py27_0 ...
       installing: nltk-3.0.3-np19py27_0 ...
       installing: nose-1.3.7-py27_0 ...
       installing: numba-0.19.1-np19py27_0 ...
       installing: numexpr-2.4.3-np19py27_0 ...
       installing: numpy-1.9.2-py27_0 ...
       installing: odo-0.3.2-np19py27_0 ...
       installing: openpyxl-1.8.5-py27_0 ...
       installing: openssl-1.0.1k-1 ...
       installing: pandas-0.16.2-np19py27_0 ...
       installing: patsy-0.3.0-np19py27_0 ...
       installing: pep8-1.6.2-py27_0 ...
       installing: pillow-2.8.2-py27_0 ...
       installing: pip-7.0.3-py27_0 ...
       installing: pixman-0.26.2-0 ...
       installing: ply-3.6-py27_0 ...
       installing: psutil-2.2.1-py27_0 ...
       installing: ptyprocess-0.4-py27_0 ...
       installing: py-1.4.27-py27_0 ...
       installing: py2cairo-1.10.0-py27_2 ...
       installing: pyasn1-0.1.7-py27_0 ...
       installing: pycosat-0.6.1-py27_0 ...
       installing: pycparser-2.14-py27_0 ...
       installing: pycrypto-2.6.1-py27_0 ...
       installing: pycurl-7.19.5.1-py27_2 ...
       installing: pyflakes-0.9.2-py27_0 ...
       installing: pygments-2.0.2-py27_0 ...
       installing: pyopenssl-0.15.1-py27_1 ...
       installing: pyparsing-2.0.3-py27_0 ...
       installing: pyqt-4.11.3-py27_1 ...
       installing: pytables-3.2.0-np19py27_0 ...
       installing: pytest-2.7.1-py27_0 ...
       installing: python-dateutil-2.4.2-py27_0 ...
       installing: pytz-2015.4-py27_0 ...
       installing: pyyaml-3.11-py27_1 ...
       installing: pyzmq-14.7.0-py27_0 ...
       installing: qt-4.8.6-3 ...
       installing: readline-6.2-2 ...
       installing: redis-2.6.9-0 ...
       installing: redis-py-2.10.3-py27_0 ...
       installing: requests-2.7.0-py27_0 ...
       installing: rope-0.9.4-py27_1 ...
       installing: runipy-0.1.3-py27_0 ...
       installing: scikit-image-0.11.3-np19py27_0 ...
       installing: scikit-learn-0.16.1-np19py27_0 ...
       installing: scipy-0.15.1-np19py27_0 ...
       installing: setuptools-17.1.1-py27_0 ...
       installing: sip-4.16.5-py27_0 ...
       installing: six-1.9.0-py27_0 ...
       installing: snowballstemmer-1.2.0-py27_0 ...
       installing: sockjs-tornado-1.0.1-py27_0 ...
       installing: sphinx-1.3.1-py27_0 ...
       installing: sphinx_rtd_theme-0.1.7-py27_0 ...
       installing: spyder-2.3.5.2-py27_0 ...
       installing: spyder-app-2.3.5.2-py27_0 ...
       installing: sqlalchemy-1.0.5-py27_0 ...
       installing: sqlite-3.8.4.1-1 ...
       installing: ssl_match_hostname-3.4.0.2-py27_0 ...
       installing: statsmodels-0.6.1-np19py27_0 ...
       installing: sympy-0.7.6-py27_0 ...
       installing: system-5.8-2 ...
       installing: terminado-0.5-py27_0 ...
       installing: theano-0.7.0-np19py27_0 ...
       installing: tk-8.5.18-0 ...
       installing: toolz-0.7.2-py27_0 ...
       installing: tornado-4.2-py27_0 ...
       installing: ujson-1.33-py27_0 ...
       installing: unicodecsv-0.9.4-py27_0 ...
       installing: util-linux-2.21-0 ...
       installing: werkzeug-0.10.4-py27_0 ...
       installing: xlrd-0.9.3-py27_0 ...
       installing: xlsxwriter-0.7.3-py27_0 ...
       installing: xlwt-1.0.0-py27_0 ...
       installing: yaml-0.1.6-0 ...
       installing: zeromq-4.0.5-0 ...
       installing: zlib-1.2.8-0 ...
       installing: anaconda-2.3.0-np19py27_0 ...
       installing: _cache-0.0-x0 ...
       Python 2.7.10 :: Continuum Analytics, Inc.
       creating default environment...
       installation finished.
       Do you wish the installer to prepend the Anaconda install location
       to PATH in your /home/node2/.bashrc ? [yes|no]
       [no] >>> yes
      
       Prepending PATH=/home/node2/anaconda/bin to PATH in /home/node2/.bashrc
       A backup will be made to: /home/node2/.bashrc-anaconda.bak
      
      
       For this change to become active, you have to open a new terminal.
      
       Thank you for installing Anaconda!
      

uninstalling

  1. you simply remove the entire install location directory

updating from older anaconda versions

        $ conda update conda
        $ conda update anaconda

install scikits-audiolab from source

  1. you must install libsndfile first

  2. download from pypi

  3. unpack

  4. $ python setup.py install

  5. example

         import os
         from subprocess import check_call
         from tempfile import mktemp
         from scikits.audiolab import wavread, play
         from scipy.signal import remez, lfilter
         from pylab import *
    
         # convert mp3, read wav
         mp3filename = 'XC124158.mp3'
         wname = mktemp('.wav')
         check_call(['avconv', '-i', mp3filename, wname])
         sig, fs, enc = wavread(wname)
         os.unlink(wname)
    
         # bandpass filter
         bands = array([0,3500,4000,5500,6000,fs/2.0]) / fs
         desired = [0, 1, 0]
         b = remez(513, bands, desired)
         sig_filt = lfilter(b, 1, sig)
         sig_filt /=  1.05 * max(abs(sig_filt)) # normalize
    
         subplot(211)
         specgram(sig, Fs=fs, NFFT=1024, noverlap=0)
         axis('tight'); axis(ymax=8000)
         title('Original')
         subplot(212)
         specgram(sig_filt, Fs=fs, NFFT=1024, noverlap=0)
         axis('tight'); axis(ymax=8000)
         title('Filtered')
         show()
    
         play(sig_filt, fs)
    

conda and binstar

  1. use conda to install a package

         $ conda install cjklib
         Fetching package metadata: ....
         Error: No packages found in current osx-64 channels matching: cjklib
    
         You can search for this package on Binstar with
    
             binstar search -t conda cjklib
    
  2. then use binstar

         $ binstar search -t conda cjklib
         Using binstar api site https://api.binstar.org
         Run 'binstar show <USER/PACKAGE>' to get more details:
         Packages:
              Name                      |  Version | Package Types   | Platforms
              ------------------------- |   ------ | --------------- | ---------------
              auto/cjklib               |    0.3.2 | conda           | linux-64, linux-32
                                                   : http://cjklib.org
              travis/cjklib             |    0.3.2 | conda           | linux-64
                                                   : http://cjklib.org
         Found 2 packages
    
  3. use binstar show to get more details

         $ binstar show travis/cjklib
         Using binstar api site https://api.binstar.org
         Name:    cjklib
         Summary: http://cjklib.org
         Access:  public
         Package Types:  conda
         Versions:
            + 0.3.2
    
         To install this package with conda run:
              conda install --channel https://conda.binstar.org/travis cjklib
    
  4. install package

         $ conda install --channel https://conda.binstar.org/travis cjklib
         Fetching package metadata: ......
         Error: No packages found in current osx-64 channels matching: cjklib
    
         You can search for this package on Binstar with
    
             binstar search -t conda cjklib
    


blog comments powered by Disqus