1.2. Getting started¶
Numba is compatible with Python 2.7 and 3.4 or later, and Numpy versions 1.7 to 1.11.
Our supported platforms are:
- Linux x86 (32-bit and 64-bit)
- Windows 7 and later (32-bit and 64-bit)
- OS X 10.9 and later (64-bit)
- NVIDIA GPUs of compute capability 2.0 and later
- AMD APUs supported by the HSA 1.0 final runtime (Kaveri, Carrizo)
1.2.2. 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
$ conda update numba
1.2.3. 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.
1.2.4. 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 ...]