PIL error: The _imaging C module is not installed

前端 未结 6 1851
情深已故
情深已故 2021-01-04 02:52

I have PIL (Python imaging library) installed.

When I run Python:

import PIL
import Image
import _imaging

I don\'t get errors. Howe

6条回答
  •  旧时难觅i
    2021-01-04 03:19

    I was completely missing the _imaging.* files in the lib/site-packages/PIL folder.

    I downloaded the egg from here (the correct file depends on the platform):

    https://pypi.python.org/pypi/Pillow/2.7.0

    renamed it from .egg to .zipand copied all the files in the folderPILthat start with_imagingto the folderlib/site-packages/PIL`.

    .. Problem solved

提交回复
热议问题