# How to install numpy for blender-python (OSX)

I've been googling for this, and I can't find a definitive answer.

Here are of the options I can find:

which suggests: 'sudo python3.2 setup.py install --install-lib /usr/lib/blender/scripts/modules/'

but I don't see how that has anything to do with numpy, so I'm going to skip this one for now.

2. http://blenderartists.org/forum/showthread.php?324822-Another-NumPy-issue Install numpy using existing Python3, and then manually copy /numpy folder over I've tried this, as below, and it fails just the same as in that thread

3. Delete Blender's Python, forcing it to fall back upon the system Python installation I'm reluctant to do this as I want this module to be publicly usable, and I don't like the idea of requiring people to cobble their blender to make it work.

So, going with (2):

I'm on OS X and I have a separate Python3 courtesy of Homebrew.

piBookAir:~ pi$pip install numpy piBookAir:~ pi$ python3
Python 3.3.4 (default, Mar  8 2014, 14:52:56)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
>>> import numpy
>>> print( numpy.__file__ )
/usr/local/lib/python3.3/site-packages/numpy/__init__.py


So now I copy the /numpy folder over to ~/BlenderScripts/modules/ (I have set ~/BlenderScripts as my scripts folder)

I restart Blender, go into the Python console:

The error is "ImportError: cannot import name add_newdocs"

What am I doing wrong?

Also, if I may bundle two questions into one, can I copy my ~/BlenderScripts onto a fresh system (maybe with a different operating system) and expect a script that imports numpy to still work?