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
  • Windows 10, brew 없는 경우 (출처)
  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