Wednesday, February 1, 2017

ImportError: cannot import name imread cs231n

ImportError                               Traceback (most recent call last)
 in ()
      3 import random
      4 import numpy as np
----> 5 from cs231n.data_utils import load_CIFAR10
      6 import matplotlib.pyplot as plt
      7 

/Users/dc/cs231n/assignment1/cs231n/data_utils.py in ()
      2 import numpy as np
      3 import os
----> 4 from scipy.misc import imread
      5 
      6 def load_CIFAR_batch(filename):

ImportError: cannot import name imread


pip install pillow

3 comments:

  1. strage, pip install pillow worked when I run raw python, but from ipython shell, I still cannot import imread

    ReplyDelete