为什么我不能安装此模块?

时间:2019-10-09 23:54:07

标签: python python-3.x

我想提高照片质量,并在GitHub上找到了neural-enhance。库有问题。

root/test/*.jpg Traceback (most recent call last):
  File "enhance.py", line 583, in <module>
    img = scipy.ndimage.imread(filename, mode='RGB')
AttributeError: module 'scipy.ndimage' has no attribute 'imread'

1 个答案:

答案 0 :(得分:0)

正如this link所说,此功能已从版本1.2.0中删除。尝试改用imageio.imread

import imageio
img = imageio.imread(filename, pilmode ='RGB')