{"id":1070,"hash":"ed0477b9cbc182af36466d0d7faf8ba201f8960184c75c3568985df6f1890e8d","pattern":"Cannot import scipy.misc.imread","full_message":"I've seen this problem before with other people, but haven't found a fix.\n\nAll I'm trying to do is:\n\nfrom scipy.misc import imread\n\nand I get \n\n/home1/users/joe.borg/<ipython-input-2-f9d3d927b58f> in <module>()\n----> 1 from scipy.misc import imread\n\n/software/Python/272/lib/python2.7/site-packages/scipy/misc/__init__.py in <module>()\n     16 try:\n     17     from pilutil import *\n---> 18     __all__ += pilutil.__all__\n     19 except ImportError:\n     20     pass\n\nNameError: name 'pilutil' is not defined\n\nBut it's fine when I do from pilutil import * on its own (no import error).  Even .../site-packages/scipy/misc/pilutil.py exists so I've got no idea why this is failing.","ecosystem":"pypi","package_name":"scipy","package_version":null,"solution":"If you have Pillow installed with scipy and it is still giving you error then check your scipy version because it has been removed from scipy since 1.3.0rc1.\n\nrather install scipy 1.1.0 by :\n\npip install scipy==1.1.0 \n\ncheck https://github.com/scipy/scipy/issues/6212","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/9298665/cannot-import-scipy-misc-imread","votes":88,"created_at":"2026-04-19T04:52:16.867889+00:00","updated_at":"2026-04-19T04:52:16.867889+00:00"}