imshow keeps crashhing

norouzey at gmail.com norouzey at gmail.com
Tue Dec 22 14:06:17 EST 2015


Hello everyone,

Can anyone please help me with "imshow"? I have tried "imshow" on different computers and different Python consoles but it does not work. Here are the code and the error message:

import scipy.misc as mi
img = mi.imread('C:\images\circles.png')
mi.imshow(img)

'see' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\...\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile
    execfile(filename, namespace)
  File "C:\...\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile
    exec(compile(scripttext, filename, 'exec'), glob, loc)
  File "C:/.../.spyder2/temp.py", line 11, in <module>
    mi.imshow(img)
  File "C:\...\Anaconda2\lib\site-packages\scipy\misc\pilutil.py", line 389, in imshow
    raise RuntimeError('Could not execute image viewer.')
RuntimeError: Could not execute image viewer.

Thanks a lot for your time.

Ahmad



More information about the Python-list mailing list