PyML Numpy import error

Hello!

I’m facing an elementary issue when importing Numpy using PyML, which can be reproduced as follows in the OCaml REPL (after installing PyML and Numpy):

#use "topfind";;
#require "pyml";;
open Py;;
Py.initialize ();;
ignore (Py.Import.import_module "numpy");;

The error I receive is:

E (<class ‘ImportError’>, Error importing numpy: you should not try to import numpy from

    its source directory; please exit the numpy source tree, and relaunch

    your python interpreter from there.)

Is this a known issue with a known fix? I’d greatly appreciate assistance!

Thank you!

Previously, I had installed Python from source. I removed that, then re-installed using brew. That somehow fixed this problem.