sometimes this script works but most of the times gives following error:
import numpy as np
from scipy import ndimage
a = ndimage.measurements.label(np.eye(3))
print(a)
ImportError: /usr/local/lib/python3.4/dist-packages/scipy/integrate/_quadpack.cpython-34m.so: failed to map segment from shared object: Cannot allocate memory
at quadpack.py. in <module> on line 9
at __init__.py. in <module> on line 57
at _ellip_harm_2.pyx. in init on line 5
at _ellip_harm.py. in <module> on line 7
at __init__.py. in <module> on line 643
at __init__.py. in <module> on line 51
at filters.py. in <module> on line 37
at __init__.py. in <module> on line 161
at Answer.py. in <module> on line 2