安装pillow错误的解决方案

时间:2023-03-09 07:40:19
安装pillow错误的解决方案

错误信息:

ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

    

    ----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-46IKo9/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LQwgnq-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-46IKo9/pillow

解决方案:

yum install python-devel

yum install zlib-devel

yum install libjpeg-turbo-devel