Skip to content
emscb 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
  1. ์‚ฌ์ดํŠธ์—์„œ gettext-tools-xx.zip, gettext-runtime-xx.zip๋ฅผ ๋‹ค์šด๋ฐ›์Šต๋‹ˆ๋‹ค.
  2. ์ž„์‹œ๋กœ ํด๋”๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ญ๋‹ˆ๋‹ค. (e.g., C:\Program Files\gettext-iconv\bin)
  3. ๋‹ค์šด๋ฐ›์€ ํŒŒ์ผ ๊ฐ๊ฐ ์••์ถ• ํ•ด์ œํ•˜์—ฌ ๊ฐ bin ํด๋”์— ์žˆ๋Š” ๋‚ด์šฉ์„ ์ž„์‹œ ํด๋”์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.
  4. ์ž„์‹œ ํด๋”๋ฅผ ์‹œ์Šคํ…œ ๋ณ€์ˆ˜ Path์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ดํ›„ ์žฌ๋ถ€ํŒ…

๋งŒ์•ฝ README.md ์ดํ›„ ๊ณผ์ • ์ค‘ bower install์—์„œ bower๊ฐ€ ์—†๋‹ค๊ณ  ํ•œ๋‹ค๋ฉด

  1. npm์ด ์žˆ๋‹ค๋ฉด npm install -g bower