@MrRangerYT

Ошибка при установке модуля pillow на Python 3 через pip, что делать?

При попытке установить модуль Pillow , (Windows 7 x64) вылетает такая ошибка:
C:\Users\MrRanger\Desktop\sketal-master>pip install pillow==3.0.0
Collecting pillow==3.0.0
  Downloading https://files.pythonhosted.org/packages/63/13/5c9ebe1d9e66cd4c7da5
28151c440871228d275945ad91567be5e9359680/Pillow-3.0.0.tar.gz (9.6MB)
    100% |████████████████████████████████| 9.6MB 1.9MB/s
Installing collected packages: pillow
  Found existing installation: pillow 5.3.0
    Uninstalling pillow-5.3.0:
      Successfully uninstalled pillow-5.3.0
  Running setup.py install for pillow ... error
    Complete output from command c:\users\mrranger\appdata\local\programs\python
\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\
MrRanger\\AppData\\Local\\Temp\\pip-install-9tkhgfv4\\pillow\\setup.py';f=getatt
r(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close(
);exec(compile(code, __file__, 'exec'))" install --record C:\Users\MrRanger\AppD
ata\Local\Temp\pip-record-wjrplaph\install-record.txt --single-version-externall
y-managed --compile:
    Single threaded build for windows
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\PIL
    copying PIL\BdfFontFile.py -> build\lib.win32-3.7\PIL
    copying PIL\BmpImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\BufrStubImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\ContainerIO.py -> build\lib.win32-3.7\PIL
    copying PIL\CurImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\DcxImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\EpsImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\ExifTags.py -> build\lib.win32-3.7\PIL
    copying PIL\features.py -> build\lib.win32-3.7\PIL
    copying PIL\FitsStubImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\FliImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\FontFile.py -> build\lib.win32-3.7\PIL
    copying PIL\FpxImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\GbrImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\GdImageFile.py -> build\lib.win32-3.7\PIL
    copying PIL\GifImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\GimpGradientFile.py -> build\lib.win32-3.7\PIL
    copying PIL\GimpPaletteFile.py -> build\lib.win32-3.7\PIL
    copying PIL\GribStubImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\IcnsImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\IcoImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\Image.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageChops.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageCms.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageColor.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageDraw.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageDraw2.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageEnhance.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageFile.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageFilter.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageFont.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageGrab.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageMath.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageMode.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageMorph.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageOps.py -> build\lib.win32-3.7\PIL
    copying PIL\ImagePalette.py -> build\lib.win32-3.7\PIL
    copying PIL\ImagePath.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageQt.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageSequence.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageShow.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageStat.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageTk.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageTransform.py -> build\lib.win32-3.7\PIL
    copying PIL\ImageWin.py -> build\lib.win32-3.7\PIL
    copying PIL\ImImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\ImtImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\IptcImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\Jpeg2KImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\JpegImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\JpegPresets.py -> build\lib.win32-3.7\PIL
    copying PIL\McIdasImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\MicImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\MpegImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\MpoImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\MspImagePlugin.py -> build\lib.win32-3.7\PIL
    copying PIL\OleFileIO.py -> build\lib.win32-3.7\PIL
    copying PIL\PaletteFile.py -> build\lib.win32-3.7\PIL
    running egg_info
    writing Pillow.egg-info\PKG-INFO
    writing dependency_links to Pillow.egg-info\dependency_links.txt
    writing top-level names to Pillow.egg-info\top_level.txt
    reading manifest file 'Pillow.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'Pillow.egg-info\SOURCES.txt'
    copying PIL\OleFileIO-README.md -> build\lib.win32-3.7\PIL
    running build_ext
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\MrRanger\AppData\Local\Temp\pip-install-9tkhgfv4\pillow\set
up.py", line 767, in <module>
        zip_safe=not debug_build(),
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\site
-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\site
-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\command\install.py", line 545, in run
        self.run_command('build')
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\mrranger\appdata\local\programs\python\python37-32\lib\dist
utils\command\build_ext.py", line 339, in run
        self.build_extensions()
      File "C:\Users\MrRanger\AppData\Local\Temp\pip-install-9tkhgfv4\pillow\set
up.py", line 515, in build_extensions
        % (f, f))
    ValueError: --enable-jpeg requested but jpeg not found, aborting.

    ----------------------------------------
  Rolling back uninstall of pillow
Command "c:\users\mrranger\appdata\local\programs\python\python37-32\python.exe
-u -c "import setuptools, tokenize;__file__='C:\\Users\\MrRanger\\AppData\\Local
\\Temp\\pip-install-9tkhgfv4\\pillow\\setup.py';f=getattr(tokenize, 'open', open
)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __f
ile__, 'exec'))" install --record C:\Users\MrRanger\AppData\Local\Temp\pip-recor
d-wjrplaph\install-record.txt --single-version-externally-managed --compile" fai
led with error code 1 in C:\Users\MrRanger\AppData\Local\Temp\pip-install-9tkhgf
v4\pillow\

Что делать, как установить этот модуль?
  • Вопрос задан
  • 3230 просмотров
Пригласить эксперта
Ответы на вопрос 2
@sash999
просто админ из деревни
Читайте документацию - там написано что "Zlib and libjpeg are required by default."
У вас не установлен libjpeg, устанавливайте.
Ответ написан
fox_12
@fox_12 Куратор тега Python
Расставляю биты, управляю заряженными частицами
Установите уже скомпилированный модуль

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
23 нояб. 2024, в 00:16
2000 руб./за проект
22 нояб. 2024, в 23:55
3000 руб./за проект
22 нояб. 2024, в 22:26
3500 руб./за проект