ImportError: cannot import name 'imread'
This function is depricated so we have two opition to solve this error.
1. Use older version of scipy. You need use scipy version 1.1.0
2. You can replace this import scipy.ndimage import imread by from imageio import imread
i.e. img = imread(path, as_gray=True).astype(int)