scipy misc.imread()在Python3中返回FileNotFound错误

时间:2017-07-01 19:27:51

标签: python numpy scipy anaconda python-imaging-library

我正在尝试使用Python 3的Anaconda发行版中的misc.imread()在python中读取图像文件作为ndarray:

from scipy import misc
photo_arr = misc.imread('sd-3layers.jpg')

但是即使图像文件存在于anaconda目录本身中,它也会返回FileNotFound错误:没有这样的文件或目录。

FileNotFoundError: [Errno 2] No such file or directory: 'sd-3layers.jpg'

此外,还安装了PIL。

0 个答案:

没有答案