Skip to content
SiYoungOh edited this page Feb 15, 2020 · 10 revisions

Welcome to the pyconkr wiki!

Required Package

mac μ‚¬μš©μžλ“€μ„ μœ„ν•œ μ„€μΉ˜λ²•

# https://github.com/python-pillow/Pillow/issues/3438
$ brew install zlib
# https://medium.com/@mohammedhammoud/install-pillow-on-mac-os-x-de2d3d0b3975
$ brew install libjpeg

Trouble Shooting

zlib κ΄€λ ¨ λ¬Έμ œκ°€ λ°œμƒν–ˆμ„ λ•Œ,

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

https://github.com/python-pillow/Pillow/issues/3438#issuecomment-543812237

해결법

$ export CPATH=`xcrun --show-sdk-path`/usr/include

compilemessages μ‹€ν–‰μ‹œ μ—λŸ¬

python manage.py compilemessages
CommandError: Can't find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.

해결법 mac os brew μ„€μΉ˜λ˜μ–΄μžˆμ„ 경우,(좜처)

$ brew link gettext --force
Clone this wiki locally