pythonnumpynumericblaze

How do you install the blaze module (Continuum analytics) in Python?


How do you install blaze natively (i.e., not in a virtual environment) in Python? The only instructions I find are on in the package's doc (see link), and here, in a virtual environment.


Solution

  • I didn't find any instructions anywhere online for this, but it's relatively straightforward.

    About my platform/tools I used:

    First, brew install llvm.

    Here are the packages you need. You can pip all of them:

    Once you've pipped everything,

    I've had trouble running the tests, it looks like there's an error in an __init__.py file somewhere, but I can't be for sure. I can't get the unit tests to run, so take "successful installation" with a grain of salt. At any rate, I can do a spot check to see that the module imports correctly:

    >>> import blaze
    >>> from blaze import Array, dshape
    >>> ds=dshape('2,2,int')
    >>> a = Array([1,2,3,4],ds)
    >>> a
    Array
      datashape := 2, 2, int 
      values    := [CArray(ptr=140454075688080)] 
      metadata  := [manifest, arraylike] 
      layout    := Chunked(dim=0) 
    [1 2 3 4]