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.
I didn't find any instructions anywhere online for this, but it's relatively straightforward.
About my platform/tools I used:
pip install Cython.First, brew install llvm.
Here are the packages you need. You can pip all of them:
llvmpynumbametaplybloscsphinx -- for docatermOnce you've pipped everything,
cd /tmp up to you, of course...sudo git clone [email protected]:ContinuumIO/blaze-core.gitcd /tmp/blaze-coresudo make buildsudo make docssudo python setup.py install
(Whether you need sudo depends on where you git things to, of course.)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]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With