gpt4 book ai didi

认为 mahotas.imread 找不到 freeimage

转载 作者:行者123 更新时间:2023-12-04 04:45:15 29 4
gpt4 key购买 nike

我是 python 新手,建议我使用 Canopy。我正在努力跟进 with this tutorial ,但我陷入了 mahotas.imread 行。我收到一个错误,说以这个结尾:

Full error was: mahotas.freeimage: could not find libFreeImage in any of the following directories: '/Users/RJD/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/mahotas', '/lib', '/usr/lib', '/usr/local/lib', '/opt/local/lib'



我已经通过包管理器添加了 mahotas 包,但无济于事。还尝试了步骤 here ,没有不同的结果。

我实际上能够在“/Users/RJD/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/mahotas”中找到“freeimage.py”和“freeimage.pyc”。我该如何告诉 Canopy 它在那里?!

任何帮助将不胜感激。

干杯,
电阻

最佳答案

mahotas 的作者在这里:

Mahotas 本身没有读取图像的功能。 imread只是围绕 3 个后端之一的包装器:

  • mahotas-imread(即 https://pypi.python.org/pypi/imread)
  • FreeImage(这是原始版本,如果您有这么旧的版本 [0.7.1 来自 12 年 1 月],它可能仍然只支持 FreeImage)
  • matplotlib(仅支持 PNG 和 JPEG)

  • 因此,您需要安装上述软件包之一。

    关于认为 mahotas.imread 找不到 freeimage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18296113/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com