# Try this import skimage.segmentation # Instead of import skimage # The issue is due to lazy loading