首页 python正文

安装Pillow报错,Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;

启明SEO python 2022-03-13 19:03:26 3506 0 Django

今天使用宝塔面板搭建Django项目,在安装Pillow的时候总是提示错误。具体如下:

Collecting pillow

  Downloading https://mirrors.tencent.com/pypi/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)

    100% |████████████████████████████████| 49.4MB 3.9MB/s 

Installing collected packages: pillow

  Running setup.py install for pillow ... error

    Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-kq7uvkdl/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2vffdn8_-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-x86_64-3.6

    creating build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageOps.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PyAccess.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/TarIO.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/_util.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/__main__.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageQt.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/__init__.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PdfParser.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/_binary.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageFont.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PSDraw.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/Image.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/TiffTags.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageTk.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageColor.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageMath.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageCms.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImagePath.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/FontFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/_version.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageShow.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/features.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageWin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ExifTags.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageStat.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL

    copying src/PIL/ImageChops.py -> build/lib.linux-x86_64-3.6/PIL

    running egg_info

    writing src/Pillow.egg-info/PKG-INFO

    writing dependency_links to src/Pillow.egg-info/dependency_links.txt

    writing top-level names to src/Pillow.egg-info/top_level.txt

    reading 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 distribution

    warning: no previously-included files matching '*.pyc' found anywhere in distribution

    warning: no previously-included files matching '*.so' found anywhere in distribution

    no previously-included directories found matching '.ci'

    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'

    running build_ext

    building 'PIL._imaging' extension

    building 'PIL._imagingft' extension

    creating build/temp.linux-x86_64-3.6

    creating build/temp.linux-x86_64-3.6/src

    creating build/temp.linux-x86_64-3.6/src

    creating build/temp.linux-x86_64-3.6/src/libImaging

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DHAVE_XCB -DPILLOW_VERSION="8.4.0" -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_imaging.c -o build/temp.linux-x86_64-3.6/src/_imaging.o

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_imagingft.c -o build/temp.linux-x86_64-3.6/src/_imagingft.o

    src/_imagingft.c:22:10: fatal error: Python.h: No such file or directory

     #include "Python.h"

              ^~~~~~~~~~

    compilation terminated.

    src/_imaging.c:75:10: fatal error: Python.h: No such file or directory

     #include "Python.h"

              ^~~~~~~~~~

    compilation terminated.

    building 'PIL._webp' extension

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_WEBPMUX -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_webp.c -o build/temp.linux-x86_64-3.6/src/_webp.o

    building 'PIL._imagingtk' extension

    creating build/temp.linux-x86_64-3.6/src/Tk

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_imagingtk.c -o build/temp.linux-x86_64-3.6/src/_imagingtk.o

    src/_webp.c:2:10: fatal error: Python.h: No such file or directory

     #include <Python.h>

              ^~~~~~~~~~

    compilation terminated.

    src/_imagingtk.c:15:10: fatal error: Python.h: No such file or directory

     #include "Python.h"

              ^~~~~~~~~~

    compilation terminated.

    building 'PIL._imagingmath' extension

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_imagingmath.c -o build/temp.linux-x86_64-3.6/src/_imagingmath.o

    building 'PIL._imagingmorph' extension

    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/freetype2 -I/tmp/pip-build-kq7uvkdl/pillow -I/usr/include -I/usr/local/include -I/usr/include/python3.6m -c src/_imagingmorph.c -o build/temp.linux-x86_64-3.6/src/_imagingmorph.o

    src/_imagingmath.c:16:10: fatal error: Python.h: No such file or directory

     #include "Python.h"

              ^~~~~~~~~~

    compilation terminated.

    src/_imagingmorph.c:14:10: fatal error: Python.h: No such file or directory

     #include "Python.h"

              ^~~~~~~~~~

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    

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

Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-kq7uvkdl/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2vffdn8_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-kq7uvkdl/pillow/

主要原因是因为系统缺少了python3-devel开发包,安装一下就可以了。安装命令:yum install python3-devel

[root@VM-16-2-centos lizhi]# yum install python3-devel

Repository epel is listed more than once in the configuration

Last metadata expiration check: 1 day, 0:46:44 ago on Sat 12 Mar 2022 06:14:51 PM CST.

Dependencies resolved.

====================================================================================================

 Package                    Arch       Version                                  Repository     Size

====================================================================================================

Installing:

 python36-devel             x86_64     3.6.8-38.module_el8.5.0+895+a459eca8     AppStream      16 k

Upgrading:

 platform-python            x86_64     3.6.8-41.el8                             BaseOS         85 k

 python3-libs               x86_64     3.6.8-41.el8                             BaseOS        7.8 M

Installing dependencies:

 platform-python-devel      x86_64     3.6.8-41.el8                             AppStream     249 k

 python3-rpm-generators     noarch     5-7.el8                                  AppStream      25 k


Transaction Summary

====================================================================================================

Install  3 Packages

Upgrade  2 Packages


Total download size: 8.2 M

Is this ok [y/N]: y   

Downloading Packages:

(1/5): python3-rpm-generators-5-7.el8.noarch.rpm                    267 kB/s |  25 kB     00:00    

(2/5): python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64.r 172 kB/s |  16 kB     00:00    

(3/5): platform-python-devel-3.6.8-41.el8.x86_64.rpm                1.2 MB/s | 249 kB     00:00    

(4/5): platform-python-3.6.8-41.el8.x86_64.rpm                      628 kB/s |  85 kB     00:00    

(5/5): python3-libs-3.6.8-41.el8.x86_64.rpm                         9.8 MB/s | 7.8 MB     00:00    

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

Total                                                               9.2 MB/s | 8.2 MB     00:00     

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                            1/1 

  Upgrading        : python3-libs-3.6.8-41.el8.x86_64                                           1/7 

  Upgrading        : platform-python-3.6.8-41.el8.x86_64                                        2/7 

  Running scriptlet: platform-python-3.6.8-41.el8.x86_64                                        2/7 

  Installing       : python3-rpm-generators-5-7.el8.noarch                                      3/7 

  Installing       : platform-python-devel-3.6.8-41.el8.x86_64                                  4/7 

  Installing       : python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                 5/7 

  Running scriptlet: python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                 5/7 

  Cleanup          : platform-python-3.6.8-37.el8.x86_64                                        6/7 

  Running scriptlet: platform-python-3.6.8-37.el8.x86_64                                        6/7 

  Cleanup          : python3-libs-3.6.8-37.el8.x86_64                                           7/7 

  Running scriptlet: python3-libs-3.6.8-37.el8.x86_64                                           7/7 

  Verifying        : platform-python-devel-3.6.8-41.el8.x86_64                                  1/7 

  Verifying        : python3-rpm-generators-5-7.el8.noarch                                      2/7 

  Verifying        : python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64                 3/7 

  Verifying        : platform-python-3.6.8-41.el8.x86_64                                        4/7 

  Verifying        : platform-python-3.6.8-37.el8.x86_64                                        5/7 

  Verifying        : python3-libs-3.6.8-41.el8.x86_64                                           6/7 

  Verifying        : python3-libs-3.6.8-37.el8.x86_64                                           7/7 


Upgraded:

  platform-python-3.6.8-41.el8.x86_64                python3-libs-3.6.8-41.el8.x86_64               

Installed:

  platform-python-devel-3.6.8-41.el8.x86_64                   python3-rpm-generators-5-7.el8.noarch 

  python36-devel-3.6.8-38.module_el8.5.0+895+a459eca8.x86_64 

安装完成后,我们再来安装pillow,就可以成功安装了

Complete!

[root@VM-16-2-centos lizhi]# pip install pillow

WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.

Collecting pillow

  Downloading https://mirrors.tencent.com/pypi/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)

    100% |████████████████████████████████| 49.4MB 109.8MB/s 

Installing collected packages: pillow

  Running setup.py install for pillow ... done


评论

Python好学公众号

好文推荐

实时访客入口页面出现bd_vid=标识是什么原因

实时访客入口页面出现bd_vid=标识是什么原因

最近查看百度实时访客,总是会看到入口页面会多......

有了微信视频号,但是没有发布权限,怎么开通

有了微信视频号,但是没有发布权限,怎么开通

视频号是微信在2020年1月19号开始内测的......

如何用python抓取爱企查企业信息

如何用python抓取爱企查企业信息

前段时间,经理让我去找一些企业的信息,我平常......

服务器配置低,宝塔面板安装IIS总是安装不上怎么办

服务器配置低,宝塔面板安装IIS总是安装不上怎么办

对于一般企业网站或者博客来说,对服务器的配置......

网站始终只收录一个首页,为什么

网站始终只收录一个首页,为什么

新做了两个网站,但是一直只是收录一个首页,快......

如何修改浏览器指纹,Canvas指纹、Webgl指纹、Audio指纹修改方法?

如何修改浏览器指纹,Canvas指纹、Webgl指纹、Audio指纹修改方法?

修改浏览指纹的方法其实也是很简单,主要使用到......