I've gotten a hold of Python Imaging Library (PIL) and installed the PNG support stuff just fine. I am however having issues with theJPEG Library.
我已经掌握了Python Imaging Library(PIL)并且安装了PNG支持的东西就好了。然而,我遇到了与JPP图书馆有关的问题。
The default setting for it is nothing but they suggest "/home/libraries/jpeg-6b". On the Mac that directory doesn't exist, the library is however installed fine, here's the output of the install.
它的默认设置是什么,但他们建议“/ 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
I tried pointing PIL to /usr/local/bin/cjpeg, cjpeg and so on but it never recognised it. Does anybody know what I'm doing wrong?
我尝试将PIL指向/ usr / local / bin / cjpeg,cjpeg等,但它从未识别出来。有人知道我做错了什么吗?
1 个解决方案
#1
For me, the only way to have working Python + PIL on OS X was to install both from ports. I've never managed to get fully functional PIL under either system Python or installed manually from python.org. Maybe you could try this approach?
对我来说,在OS X上运行Python + PIL的唯一方法是从端口安装两者。我从未设法在任何系统Python下获得功能完备的PIL或从python.org手动安装。也许你可以尝试这种方法?
#1
For me, the only way to have working Python + PIL on OS X was to install both from ports. I've never managed to get fully functional PIL under either system Python or installed manually from python.org. Maybe you could try this approach?
对我来说,在OS X上运行Python + PIL的唯一方法是从端口安装两者。我从未设法在任何系统Python下获得功能完备的PIL或从python.org手动安装。也许你可以尝试这种方法?