我已经掌握了Python Imaging Library(PIL)并且安装了PNG支持的东西就好了.但是我遇到了JPEG库的问题.
它的默认设置是什么,但他们建议"/ 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等,但它从未识别出它.有人知道我做错了什么吗?
对我来说,在OS X上运行Python + PIL的唯一方法是从端口安装两者.我从未设法在任何系统Python下获得功能完备的PIL或从python.org手动安装.也许你可以尝试这种方法?