我想知道是否有人可以帮助我解决这个问题。当我尝试 python setup.py build(或 pip install 或 easy_install)时,会发生这种情况
要点是
src/png_io.c:3:17: error: png.h: No such file or directory
src/png_io.c: In function ‘newMMBitmapFromPNG’:
src/png_io.c:34: error: ‘png_struct’ undeclared (first use in this function)
src/png_io.c:34: error: (Each undeclared identifier is reported only once
...一堆错误...
src/png_io.c:332: error: ‘PNG_TRANSFORM_IDENTITY’ undeclared (first use in this function)
lipo: can't figure out the architecture type of: /var/folders/kt/d8t29zkx7kd_7c_mr17ntv6m0000gn/T//ccubs4CM.out
error: command 'gcc-4.2' failed with exit status 1
libpng 在 Library/Frameworks 中,它位于 < > 包含的搜索路径上(我用 cpp -v 检查过),但它作为 libpng.framework 在那里,然后标题位于名为 headers 的子目录中。libpng.framework 文件中还有几个版本的 libpng。我也在运行 64 位 python。任何想法如何进行?
谢谢,帕特