File "demo_test.py", line 74, in <module>
img = (path + image_names[-1])
File "/usr/local/lib/python2.7/dist-packages/matplotlib/", line 1357, in imread
im = pilread(fname)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/", line 1335, in pilread
with (fname) as image:
File "/usr/lib/python2.7/dist-packages/PIL/", line 528, in __getattr__
raise AttributeError(name)
AttributeError: __exit__
解决: sudo pip install --upgrade Pillow
done