首页 > 编程知识 正文

qpython,python中eval函数作用

时间:2023-05-06 09:09:42 阅读:60490 作者:1321

iamtryingtoreadanimagewithscipy.howeveritdoesnotacceptthescipy.misc.imreadpart.whatcouldbethecauseofthis?

导入脚本

scipy.misc

scipy.misc.imread('test.TIF ' )。

跟踪后退(mostrecentcalllast ) :

文件',line 1,in

scipy.misc.imread('test.TIF ' )。

youneedtoinstallpil.fromthedocsonscipy.misc :

notethatthepythonimaginglibrary (pil ) isnotadependencyofscipyandthereforethepilutilmoduleisnotavailableonsystemsthatdon’th

After安装pil,iwasabletoaccessimreadasfollows 3360

In [1]: import scipy.misc

In [2]: scipy.misc.imread

Out[2]:

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。