Setup pyximport to include the numpy headers
import pyximport import numpy as np pyximport.install(setup_args={'include_dirs': np.get_include()})