我已经掌握了Python Imaging Library (PIL)并很好地安装了 PNG 支持的东西。但是,我遇到了JPEG Library的问题。
它的默认设置只是他们建议“/home/libraries/jpeg-6b”。在 Mac 上,该目录不存在,但是该库安装得很好,这是安装的输出。
/usr/bin/install -c cjpeg /usr/local/bin/cjpeg
/usr/bin/install -c djpeg /usr/local/bin/djpeg
/usr/bin/install -c jpegtran /usr/local/bin/jpegtran
/usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom
/usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1
我尝试将 PIL 指向 /usr/local/bin/cjpeg、cjpeg 等,但它从未识别过它。有人知道我做错了什么吗?