에러

django pillow 설치 오류 The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

integerJI 2020. 4. 11. 10:14
    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\jjs95\AppData\Local\Temp\pip-install-y8jrfcfl\Pillow\setup.py", line 888, 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

 

이는 설치된 python 버전과 설치할 pillow의 버전 차이때문에 일어난 애러이다.

 

나의 컴퓨터에서는 python 3.8.1, pillow는 6.1.0을 깔려햇엇다.

 

그냥 pillow를 최신으로 설치하니 해결 완료

 

or pip 최신으로 업글