您好我正在尝试使用Mahotas来阅读图像。我收到一条错误,上面写着“ValueError:mahotas.freeimage:无法确定文件picture.jpeg的类型”。我尝试了几种图像和文件类型,包括bmp和png。
import mahotas
picture = mahotas.imread('picture.jpeg') #line throws error
此问题也是here跟我一样跟tutorial一样,但未找到解决方案的问题。
如果有任何帮助,调用$ brew doctor
会返回以下警告:
Warning: Enthought Python was found in your PATH.
This can cause build problems, as this software installs its own
copies of iconv and libxml2 into directories that are picked up by
other build systems.
Warning: Python is installed at /Library/Frameworks/Python.framework