python - PIL install with jpeg -
i install pil1.2 python2.7 on linux mint 64. have run python setup.py build_ext -i
. , got following infomations.
running build_ext -------------------------------------------------------------------- pil 1.2a0 setup summary -------------------------------------------------------------------- version 1.2a0 platform python 2.7.3 (default, apr 10 2013, 05:13:16) [gcc 4.7.2] on linux2 -------------------------------------------------------------------- *** tkinter support not available (tcl/tk 8.5 libraries needed) --- jpeg support available *** webp support not available --- zlib (png/zip) support available --- freetype2 support available --- littlecms support available -------------------------------------------------------------------- add missing option, make sure have required library, , set corresponding root variable in setup.py script. check build, run selftest.py script.
*but when ran python selftest.py
. got jpg
error *
'-------------------------------------------------------------------- pil 1.2a0 test summary -------------------------------------------------------------------- python modules loaded ./pil binary modules loaded ./pil -------------------------------------------------------------------- --- pil core support ok *** tkinter support not installed *** jpeg support not installed *** webp support not installed *** zlib (png/zip) support not installed --- freetype2 support ok --- littlecms support ok -------------------------------------------------------------------- running selftest: ********************************************************************** file "./selftest.py", line 50, in selftest.testimage failed example: try: _info(image.open(os.path.join(root, "images/lena.jpg"))) except ioerror: pass expected: ('jpeg', 'rgb', (128, 128)) got nothing ********************************************************************** 1 items had failures: 1 of 58 in selftest.testimage ***test failed*** 1 failures. *** 1 tests of 58 failed.
why can't pass test
way pil1.7.1 can work on computer. i can't convert ycbcr
numpy.array
. , said version1.2 had fixed bug
i have solved issue
aptitude search python_pip pip uninstall pil pip install pillow
Comments
Post a Comment