Estaba intentando instalar el paquete Pillow para mi proyecto, usando el instalador del IDE Pycharm, el problema es que me arroja este error
opying src\PIL\_version.py -> build\lib.win32-3.8\PIL
copying src\PIL\__init__.py -> build\lib.win32-3.8\PIL
copying src\PIL\__main__.py -> build\lib.win32-3.8\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 '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'azure-pipelines.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 '.azure-pipelines'
no previously-included directories found matching '.travis'
writing manifest file 'src\Pillow.egg-info\SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.
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\DARWIN~1\AppData\Local\Temp\pycharm-packaging\Pillow\setup.py", line 852, in <module>
setup(
File "C:\Users\Darwin Lozada\PycharmProjects\LearningPython\venv\lib\site-packages\setuptools-40.8.0-py3.8.egg\setuptools\__init__.py", line 145, in setup
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Darwin Lozada\PycharmProjects\LearningPython\venv\lib\site-packages\setuptools-40.8.0-py3.8.egg\setuptools\command\install.py", line 61, in run
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Darwin Lozada\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\DARWIN~1\AppData\Local\Temp\pycharm-packaging\Pillow\setup.py", line 687, 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\DARWIN~1\AppData\Local\Temp\pycharm-packaging\Pillow\setup.py", line 907, 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
----------------------------------------
Command ""C:\Users\Darwin Lozada\PycharmProjects\LearningPython\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\DARWIN~1\\AppData\\Local\\Temp\\pycharm-packaging\\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 "C:\Users\Darwin Lozada\AppData\Local\Temp\pip-record-1rt1k0s2\install-record.txt" --single-version-externally-managed --compile --install-headers "C:\Users\Darwin Lozada\PycharmProjects\LearningPython\venv\include\site\python3.8\Pillow"" failed with error code 1 in C:\Users\DARWIN~1\AppData\Local\Temp\pycharm-packaging\Pillow\
Ya instalé Pillow usando pip install Pillow
Pero al parecer Pycharm no lo reconoze
También instalé zlib
en su versión 1.2.3 pero sigue el mismo error.
Porfa ayudenme con este problema, no sé si hay que configurar algo del IDE, o si habrá otra forma de usar ese paquete.