我想知道是否有人可以幫我弄清楚這一點。當我嘗試蟒蛇setup.py版本(或PIP安裝,或使用easy_install),這種情況需要幫助在mac os上安裝python package autopy x - libpng和png.h的難度
要點是
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中,它在<> includes(包括我用cpp -v檢查)的搜索路徑上,但它作爲libpng.framework在那裏,然後這些頭文件位於名爲頭文件的子目錄中。在libpng.framework文件中還有幾個libpng版本。我也運行64位Python。任何想法如何繼續?
感謝, 帕特