1.2. Getting started

1.2.1. Installing using Conda

The easiest way to install numba and get updates is by using Conda, a cross-platform package manager and software distribution maintained by Continuum Analytics. You can either use Anaconda to get the full stack in one download, or Miniconda which will install the minimum packages needed to get started.

Once you have conda installed, just type:

$ conda install numba

or:

$ conda update numba

1.2.2. Installing from source

We won’t cover requirements in detail here, but you can get the bleeding-edge source code from Github:

$ git clone git://github.com/numba/numba.git

Source archives of the latest release can be found on PyPI.

You will need a C compiler corresponding to your Python installation, as well as the Numpy and llvmlite packages. See Build environment for more information.

1.2.3. Checking your installation

You should be able to import Numba from the Python prompt:

$ python
Python 3.4.2 |Continuum Analytics, Inc.| (default, Oct 21 2014, 17:16:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numba
>>> numba.__version__
'0.16.0-82-g350c9d2'

You can also try executing the pycc utility:

$ pycc --help
usage: pycc [-h] [-o OUTPUT] [-c | --llvm] [--linker LINKER]
            [--linker-args LINKER_ARGS] [--header] [--python] [-d]
            inputs [inputs ...]