Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error #46

Open
kiransumanan opened this issue May 18, 2022 · 11 comments
Open

Install error #46

kiransumanan opened this issue May 18, 2022 · 11 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@kiransumanan
Copy link

While installing the pandas_alive using pip install pandas_alive, following error message shows: ModuleNotFoundError: No module named 'pandas_alive'

@JackMcKew
Copy link
Owner

Thank you for the issue!

Could you please help by providing your environment details

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

With specific regard to Python version, pip version, etc

Did any errors show when you ran pip install pandas_alive?

@kiransumanan
Copy link
Author

OS: Windows 11
Browser : Chrome
Current Kernel Information:Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]

errors show when I ran pip install pandas_alive:

Collecting pandas_alive
Using cached pandas_alive-0.2.4-py3-none-any.whl (38 kB)
Collecting attrs<20.0.0,>=19.3.0
Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: pandas<2.0.0,>=1.0.3 in c:\users\user\anaconda3\lib\site-packages (from pandas_alive) (1.3.4)
Requirement already satisfied: matplotlib<4.0.0,>=3.2.1 in c:\users\user\anaconda3\lib\site-packages (from pandas_alive) (3.4.3)
Collecting pillow<8.0.0,>=7.1.2
Using cached Pillow-7.2.0.tar.gz (39.1 MB)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\user\anaconda3\lib\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (3.0.4)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\user\anaconda3\lib\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (2.8.2)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\user\anaconda3\lib\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.3.1)
Requirement already satisfied: cycler>=0.10 in c:\users\user\anaconda3\lib\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (0.10.0)
Requirement already satisfied: numpy>=1.16 in c:\users\user\anaconda3\lib\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.20.3)
Requirement already satisfied: six in c:\users\user\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.16.0)Note: you may need to restart the kernel to use updated packages.

ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\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'"'"'))' bdist_wheel -d 'C:\Users\user\AppData\Local\Temp\pip-wheel-62y64yj4'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644
Complete output (173 lines):
C:\Users\user\AppData\Local\Temp\pip-install-bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py:42: RuntimeWarning: Pillow 7.2.0 does not support Python 3.9 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\PIL
copying src\PIL\BdfFontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BlpImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BmpImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BufrStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ContainerIO.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\CurImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\DcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\DdsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\EpsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ExifTags.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\features.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FitsStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FliImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FpxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FtexImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GbrImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GdImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GifImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GimpGradientFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GimpPaletteFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GribStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IcnsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IcoImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Image.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageChops.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageCms.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageColor.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageDraw.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageDraw2.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageEnhance.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFilter.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFont.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageGrab.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMath.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMode.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMorph.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageOps.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImagePalette.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImagePath.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageQt.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageSequence.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageShow.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageStat.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageTk.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageTransform.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageWin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImtImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IptcImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\JpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\JpegPresets.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\McIdasImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MicImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MpoImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MspImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PaletteFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PalmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcdImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcfFontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PdfImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PdfParser.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PixarImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PngImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PsdImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PSDraw.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PyAccess.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SgiImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SpiderImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SunImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TarIO.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TgaImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TiffImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TiffTags.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WalImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WebPImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WmfImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XbmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XVThumbImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_binary.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_tkinter_finder.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_util.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_version.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_init
.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_main
.py -> build\lib.win-amd64-3.9\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 '.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'
adding license file 'LICENSE'
writing manifest file 'src\Pillow.egg-info\SOURCES.txt'
running build_ext

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Temp\pip-install-bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 864, in
setup(
File "C:\Users\user\anaconda3\lib\site-packages\setuptools_init
.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\user\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\user\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\user\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\user\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\user\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\user\anaconda3\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 694, in build_extensions
raise RequiredDependencyException(f)
main.RequiredDependencyException: zlib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 918, in
raise RequiredDependencyException(msg)
main.RequiredDependencyException:

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html


ERROR: Failed building wheel for pillow
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\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 'C:\Users\user\AppData\Local\Temp\pip-record-dwcvb1y6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\anaconda3\Include\pillow'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644
Complete output (175 lines):
C:\Users\user\AppData\Local\Temp\pip-install-bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py:42: RuntimeWarning: Pillow 7.2.0 does not support Python 3.9 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.
warnings.warn(
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\PIL
copying src\PIL\BdfFontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BlpImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BmpImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\BufrStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ContainerIO.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\CurImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\DcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\DdsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\EpsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ExifTags.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\features.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FitsStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FliImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FpxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\FtexImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GbrImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GdImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GifImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GimpGradientFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GimpPaletteFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\GribStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IcnsImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IcoImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Image.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageChops.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageCms.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageColor.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageDraw.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageDraw2.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageEnhance.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFilter.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageFont.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageGrab.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMath.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMode.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageMorph.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageOps.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImagePalette.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImagePath.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageQt.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageSequence.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageShow.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageStat.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageTk.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageTransform.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImageWin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\ImtImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\IptcImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\JpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\JpegPresets.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\McIdasImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MicImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MpoImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\MspImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PaletteFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PalmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcdImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcfFontFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PdfImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PdfParser.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PixarImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PngImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PsdImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PSDraw.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\PyAccess.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SgiImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SpiderImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\SunImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TarIO.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TgaImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TiffImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\TiffTags.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WalImageFile.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WebPImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\WmfImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XbmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL\XVThumbImagePlugin.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_binary.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_tkinter_finder.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_util.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_version.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_init
.py -> build\lib.win-amd64-3.9\PIL
copying src\PIL_main
.py -> build\lib.win-amd64-3.9\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 '.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'
adding license file 'LICENSE'
writing manifest file 'src\Pillow.egg-info\SOURCES.txt'
running build_ext

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 864, in <module>
    setup(
  File "C:\Users\user\anaconda3\lib\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\user\anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\user\anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Users\user\anaconda3\lib\distutils\command\install.py", line 546, in run
    self.run_command('build')
  File "C:\Users\user\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\user\anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\user\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\user\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\user\anaconda3\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 694, in build_extensions
    raise RequiredDependencyException(f)
__main__.RequiredDependencyException: zlib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py", line 918, in <module>
    raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:

The headers or library files could not be found for zlib,
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: 'C:\Users\user\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-_bfahuh4\pillow_f2d98a0491b54687b1609e1ea2979644\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 'C:\Users\user\AppData\Local\Temp\pip-record-dwcvb1y6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\anaconda3\Include\pillow' Check the logs for full command output.

@JackMcKew
Copy link
Owner

Hmm seems very strange it's trying to install Pillow <8.0.0 as the pyproject.toml is asking for <9.0.0 as the error above is fixed in >8.0.0 as noted in: https://stackoverflow.com/questions/60590809/cannot-pip-install-pillow-7-on-python-3-9

Are you using pip within conda?

Can you try using conda to install pandas_alive instead with conda install pandas_alive -c conda-forge

@kiransumanan
Copy link
Author

conda install pandas_alive -c conda-forge is also not working

@kiransumanan
Copy link
Author

I've installed Anaconda and using jupyter notebook from the navigator
When I use "conda install pandas_alive -c conda-forge" , showing the following error
File "C:\Users\USER\AppData\Local\Temp/ipykernel_1532/3156756182.py", line 3
conda install pandas_alive -c conda-forge
^
SyntaxError: invalid syntax

@JackMcKew
Copy link
Owner

Have you activated the environment with conda activate <ENVIRONMENT_NAME> where ENVIRONMENT_NAME is the one you've created?

@JackMcKew
Copy link
Owner

Also looking at the error, it seems wherever you've run the command from doesn't recognize anaoncda, from memory the windows distributable comes with an application called Anaconda Navigator

@JackMcKew JackMcKew added good first issue Good for newcomers question Further information is requested labels May 19, 2022
@ForelliCH
Copy link

I get this error on several Windows systems and have done some testing:

  • Tested with Python 3.9 and 3.10 - (almost) same error
  • Tested with Windows 11 and Windows 10
  • Tested with the command "pip install pandas_alive --use-pep517" - Did not work either, slightly different error message at the end

ERROR: Failed building wheel for pillow
Failed to build pillow
ERROR: Could not build wheels for pillow, which is required to install pyproject.toml-based projects

  • Pillow 9.3.0 is installed on the system and works. No Upgrade is possible.

  • I uninstalled Pillow manually and started the setup again - The same error

  • Manual installation of zlib to the Windows System and try all tests above again. Same errors.

I can't use conda on the system, so I used PIP and I don't want to build it myself. Too bad, would love to use pandas_alive...

Here the details:

`pip install pandas_alive
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas_alive
Using cached pandas_alive-0.2.4-py3-none-any.whl (38 kB)
Collecting attrs<20.0.0,>=19.3.0
Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: matplotlib<4.0.0,>=3.2.1 in c:\users\username\appdata\roaming\python\python310\site-packages (from pandas_alive) (3.6.1)
Requirement already satisfied: pandas<2.0.0,>=1.0.3 in c:\users\username\appdata\roaming\python\python310\site-packages (from pandas_alive) (1.5.0)
Collecting pillow<8.0.0,>=7.1.2
Using cached Pillow-7.2.0.tar.gz (39.1 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (3.0.9)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.0.5)
Requirement already satisfied: packaging>=20.0 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (21.3)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (2.8.2)
Requirement already satisfied: numpy>=1.19 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.23.3)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (4.38.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.4.4)
Requirement already satisfied: cycler>=0.10 in c:\users\username\appdata\roaming\python\python310\site-packages (from matplotlib<4.0.0,>=3.2.1->pandas_alive) (0.11.0)
Requirement already satisfied: pytz>=2020.1 in c:\users\username\appdata\roaming\python\python310\site-packages (from pandas<2.0.0,>=1.0.3->pandas_alive) (2022.4)
Requirement already satisfied: six>=1.5 in c:\users\username\appdata\roaming\python\python310\site-packages (from python-dateutil>=2.7->matplotlib<4.0.0,>=3.2.1->pandas_alive) (1.16.0)
Installing collected packages: pillow, attrs, pandas_alive
Attempting uninstall: pillow
Found existing installation: Pillow 9.3.0
Uninstalling Pillow-9.3.0:
Successfully uninstalled Pillow-9.3.0
DEPRECATION: pillow is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
Running setup.py install for pillow ... error
error: subprocess-exited-with-error

× Running setup.py install for pillow did not run successfully.
│ exit code: 1
╰─> [188 lines of output]
C:\Users\username\AppData\Local\Temp\pip-install-vtodtc1d\pillow_d6e70a30d88d4066a8219b85f48c8e19\setup.py:42: RuntimeWarning: Pillow 7.2.0 does not support Python 3.10 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.
warnings.warn(
running install
C:\Program Files\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\PIL
copying src\PIL\BdfFontFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\BlpImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\BmpImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\BufrStubImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ContainerIO.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\CurImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\DcxImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\DdsImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\EpsImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ExifTags.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\features.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\FitsStubImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\FliImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\FontFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\FpxImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\FtexImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GbrImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GdImageFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GifImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GimpGradientFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GimpPaletteFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\GribStubImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\IcnsImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\IcoImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\Image.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageChops.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageCms.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageColor.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageDraw.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageDraw2.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageEnhance.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageFilter.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageFont.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageGrab.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageMath.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageMode.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageMorph.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageOps.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImagePalette.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImagePath.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageQt.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageSequence.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageShow.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageStat.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageTk.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageTransform.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImageWin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\ImtImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\IptcImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\JpegImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\JpegPresets.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\McIdasImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\MicImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\MpegImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\MpoImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\MspImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PaletteFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PalmImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PcdImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PcfFontFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PcxImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PdfImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PdfParser.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PixarImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PngImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PpmImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PsdImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PSDraw.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\PyAccess.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\SgiImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\SpiderImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\SunImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\TarIO.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\TgaImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\TiffImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\TiffTags.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\WalImageFile.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\WebPImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\WmfImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\XbmImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\XpmImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL\XVThumbImagePlugin.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_binary.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_tkinter_finder.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_util.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_version.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_init_.py -> build\lib.win-amd64-cpython-310\PIL
copying src\PIL_main_.py -> build\lib.win-amd64-cpython-310\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 '.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'
adding license file 'LICENSE'
writing manifest file 'src\Pillow.egg-info\SOURCES.txt'
running build_ext

  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html

  Traceback (most recent call last):
    File "C:\Users\username\AppData\Local\Temp\pip-install-vtodtc1d\pillow_d6e70a30d88d4066a8219b85f48c8e19\setup.py", line 864, in <module>
      setup(
    File "C:\Program Files\Python310\lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\core.py", line 177, in setup
      return run_commands(dist)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\core.py", line 193, in run_commands
      dist.run_commands()
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
      self.run_command(cmd)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python310\lib\site-packages\setuptools\command\install.py", line 68, in run
      return orig.install.run(self)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\command\install.py", line 695, in run
      self.run_command('build')
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\cmd.py", line 317, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python310\lib\site-packages\setuptools\command\build.py", line 24, in run
      super().run()
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
      self.run_command(cmd_name)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\cmd.py", line 317, in run_command
      self.distribution.run_command(command)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Program Files\Python310\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
      self.build_extensions()
    File "C:\Users\username\AppData\Local\Temp\pip-install-vtodtc1d\pillow_d6e70a30d88d4066a8219b85f48c8e19\setup.py", line 694, in build_extensions
      raise RequiredDependencyException(f)
  __main__.RequiredDependencyException: zlib

  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\username\AppData\Local\Temp\pip-install-vtodtc1d\pillow_d6e70a30d88d4066a8219b85f48c8e19\setup.py", line 918, in <module>
      raise RequiredDependencyException(msg)
  __main__.RequiredDependencyException:

  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html


  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of Pillow
Moving to c:\users\username\appdata\roaming\python\python310\site-packages\pil
from C:\Users\username\AppData\Roaming\Python\Python310\site-packages~il
Moving to c:\users\username\appdata\roaming\python\python310\site-packages\pillow-9.3.0.dist-info
from C:\Users\username\AppData\Roaming\Python\Python310\site-packages~illow-9.3.0.dist-info
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pillow

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.`

@devoker666
Copy link

I am having the same issue, with Python 3.10.8. I have already pillow 9.5 installed but the package is trying to install Pillow-7.2.0.

@abdullahdevrel
Copy link

abdullahdevrel commented May 11, 2023

I spent a freaking weekend on this!

Install external dependencies manually.

🔗 https://pillow.readthedocs.io/en/latest/installation.html#external-libraries

sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk libharfbuzz-dev libfribidi-dev libxcb1-dev

I have installed a bunch of other stuff, but I am not sure if they helped.

@Paulie-Aditya
Copy link

This seems to be an error with the version of pillow required for the package. It is trying to install pillow- 7.2.0 which is not compatible with higher versions of Python (3.9 onwards)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants