报错如下

[root@192 cadence_server]# python3 -m pip install  -i https://pypi.douban.com/simple  pillow
Looking in indexes: https://pypi.douban.com/simple
Collecting pillowUsing cached https://pypi.doubanio.com/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4 MB)Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pillow, since package 'wheel' is not installed.
Installing collected packages: pillowRunning setup.py install for pillow ... errorERROR: Command errored out with exit status 1:command: /usr/local/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qpmpyxkh/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/pillowcwd: /tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/Complete output (175 lines):running installrunning buildrunning build_pycreating buildcreating build/lib.linux-x86_64-3.6creating build/lib.linux-x86_64-3.6/PILcopying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/TarIO.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageStat.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PyAccess.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/FontFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageWin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageTk.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/_binary.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImagePath.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageQt.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/features.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/_version.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageColor.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/TiffTags.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/__init__.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ExifTags.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageShow.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageFont.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/__main__.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/Image.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageFile.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageOps.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PdfParser.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageChops.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageCms.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PSDraw.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/_util.py -> build/lib.linux-x86_64-3.6/PILcopying src/PIL/ImageMath.py -> build/lib.linux-x86_64-3.6/PILrunning egg_infowriting src/Pillow.egg-info/PKG-INFOwriting dependency_links to src/Pillow.egg-info/dependency_links.txtwriting top-level names to src/Pillow.egg-info/top_level.txtreading manifest file 'src/Pillow.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'warning: no files found matching '*.c'warning: no files found matching '*.h'warning: no files found matching '*.sh'warning: no previously-included files found matching '.appveyor.yml'warning: no previously-included files found matching '.clang-format'warning: no previously-included files found matching '.coveragerc'warning: no previously-included files found matching '.editorconfig'warning: no previously-included files found matching '.readthedocs.yml'warning: no previously-included files found matching 'codecov.yml'warning: no previously-included files matching '.git*' found anywhere in distributionwarning: no previously-included files matching '*.pyc' found anywhere in distributionwarning: no previously-included files matching '*.so' found anywhere in distributionno previously-included directories found matching '.ci'writing manifest file 'src/Pillow.egg-info/SOURCES.txt'running build_extThe headers or library files could not be found for jpeg,a required dependency when compiling Pillow from source.Please see the install instructions at:https://pillow.readthedocs.io/en/latest/installation.htmlTraceback (most recent call last):File "/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py", line 1024, in <module>zip_safe=not (debug_build() or PLATFORM_MINGW),File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setupreturn distutils.core.setup(**attrs)File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setupdist.run_commands()File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commandsself.run_command(cmd)File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/usr/local/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in runreturn orig.install.run(self)File "/usr/local/lib/python3.6/distutils/command/install.py", line 545, in runself.run_command('build')File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in runself.run_command(cmd_name)File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/usr/local/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run_build_ext.run(self)File "/usr/local/lib/python3.6/distutils/command/build_ext.py", line 339, in runself.build_extensions()File "/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py", line 790, in build_extensionsraise RequiredDependencyException(f)__main__.RequiredDependencyException: jpegDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py", line 1037, in <module>raise RequiredDependencyException(msg)__main__.RequiredDependencyException:The headers or library files could not be found for jpeg,a required dependency when compiling Pillow from source.Please see the install instructions at:https://pillow.readthedocs.io/en/latest/installation.html----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e71ixy5z/pillow_ec54817ffc0f4b3697d20e0dae383254/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qpmpyxkh/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/pillow Check the logs for full command output.

执行命令

yum -y install libjpeg-turbo-devel

这参考解决方案
https://stackoverflow.com/questions/44043906/the-headers-or-library-files-could-not-be-found-for-jpeg-installing-pillow-on/44044479#44044479

python安装pillow报错相关推荐

  1. python安装报错类型_解决Python安装cryptography报错问题

    解决Python安装cryptography报错问题 错误一: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wst ...

  2. 【已解决】Python安装TensorFlow报错“Consider adding this directory to PATH or, if you prefer to suppress this

    [已解决]Python安装TensorFlow报错"Consider adding this directory to PATH or, if you prefer to suppress ...

  3. python 安装 pyinstaller 报错Preparing wheel metadata ... error

    python 安装 pyinstaller 报错Preparing wheel metadata ... error ERROR: Command errored out with exit stat ...

  4. python 安装 psycopg2 报错问题处理

    今天在安装服务器环境时,使用Python  安装 psycopg2 报错如下 pip3 install psycopg2 Looking in indexes: http://mirrors.clou ...

  5. python pip install pillow_Windows下Python中pip安装Pillow报错总结(转载)

    遇到的俩种错误 1. ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting 问题 ...

  6. python安装Pyro报错:SyntaxError: Missing parentheses in call to ‘exec‘

    开门见山,报错的原因就是因为:python2和3的exec方法调用格式不同. 起因如下:我要下载一个python库pyro,这个是一个概率编程的库.所以第一想法当然是: pip install pyr ...

  7. linux或Jetson nano上安装torchvision或安装pillow报错:The headers or library files could not be found for jpeg

    1 错误分析 我在Jetson nano上安装torchvision的时候报错(torchvision依赖pillow库):The headers or library files could not ...

  8. qpython3安装lxml_centos python安装lxml报错

    如题,报错如下,尝试安装了相关的依赖包还是不行 Using cached lxml-3.6.0.tar.gz Building wheels for collected packages: lxml ...

  9. python安装插件报错原因_Sublime Text3 python自动补全问题——Sublime Text3安装Anaconda插件...

    学习python的时候 在编辑器的选择上会有很多选择,我最终还是选择了sublime text3. 相对于其他编辑器,sublime text有以下特性: 插件多,类似GoSublime,Emmet信 ...

最新文章

  1. Android SDK安装找不到JDK
  2. java 延迟初始化_java-不正确的延迟初始化
  3. java怎么加定时器,Spring中定时器实现
  4. ora00600内部错误代码oracle,ORA-00600: 内部错误代码, 参数: [13013]
  5. Feature Pyramid Networks for Object Detection 总结
  6. 6的变换_电源学报 | 2020年第3期:quot;高性能双向直流变换技术及其应用quot;专辑征稿启事...
  7. 用javascript动态调整iframe高度
  8. STM32F103定时器输出频率测试
  9. 一分钟理解python里面的functools.partial
  10. 中国高技术产业统计年鉴(1995-2021年)
  11. python爬取wifi密码完整代码_WIFIpass – Python获取本机保存的所有WIFI密码(附源代码)...
  12. html 外联 变 内联,Html 内联元素、外联元素 和 可变元素
  13. 易点云冲刺上市:亏损收窄、债务高企,租电脑的生意能否长久?
  14. 离散型制造业数字化转型难点与转型方向
  15. airpak模拟案例_基于Airpak的大型车间污染物消散的数值模拟研究
  16. 替代3DJ6和3DG6的场效应管和三极管
  17. 潜心Build!Web3.0行业近期高融资项目有哪些?
  18. 什么是PWM 和PFM?
  19. 数据分析3 - 算法篇
  20. C++控制输出的字体颜色

热门文章

  1. 页面驱动开发(Page Driven) —— 一种大多数人还不认同的技术
  2. java中Date计算时间差
  3. 如何用大数据和开放平台创新
  4. DETR3D 多2d图片3D检测框架
  5. cortana小娜不能文字搜索,只能用语音搜索【修复教程】
  6. Startup攻略秘籍,从头到尾,一篇搞定!
  7. 大一作业HTML网页作业:中华传统文化题材网页设计(纯html+css实现)科普网
  8. ESP32入门基础之ESP32作为 WIFI Station去连接wifi热点
  9. Oceanbase 扩容TPC-H测试
  10. python爬虫api接口,网易云音乐python爬虫api接口