Python Pil Installation Problems in centos6.2

Source: Internet
Author: User

Problems may occur if you directly use the source code or install easy_install:
[Root @ localhost imaging-1.1.7] # easy_install PIL
Searching for Pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best Match: Pil 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7/setup. py-Q bdist_egg -- dist-DIR/tmp/easy_install-QsybyL/PIL-1.1.7/egg-dist-tmp-47MNVY
Warning: 'Not a valid package name; please use only.-separated package names in setup. py
_ Imaging. C: 75: 20: Error: Python. h: no such file or directory
In file encoded ded from libimaging/imaging. h: 14,
From _ imaging. C: 77:
Libimaging/implatform. h: 14: 2: Error: # error sorry, this library requires support for ANSI prototypes.
Libimaging/implatform. h: 17: 2: Error: # error sorry, this library requires ANSI header files.
Libimaging/implatform. h: 55: 2: Error: # error cannot find required 32-bit integer type
In file encoded ded from _ imaging. C: 77:
Libimaging/imaging. h: 90: Error: Expected specifier-qualifier-list before 'int32'
Libimaging/imaging. h: 264: Error: Expected specifier-qualifier-list before 'int32'
Libimaging/imaging. h: 395: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' imagingcrc32'
_ Imaging. C: 124: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 129: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 143: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 151: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 154: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 160: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 165: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 170: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 172: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' * 'token
_ Imaging. C: In function '_ dealloc ':
_ Imaging. C: 204: Error: 'imagingobject' has no member named' access'
...
_ Imaging. C: 3152: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' Functions'
_ Imaging. C: 3250: Warning: return type defaults to 'int'
_ Imaging. C: In function 'dl _ export ':
_ Imaging. C: 3250: Error: expected declaration specifiers before 'init _ imaging'
_ Imaging. C: 3281: Error: Expected '{'at end of input
Error: Setup script exited with error: Command 'gcc 'failed with exit status 1

Only installed through yum

Yum install Python-imaging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.