피카부 RSS 태그 관리 글쓰기 방명록 다시 시작하는 개발 블로그
2014-11-20 10:50:45

OSX Maverics + virtualenv + pip 에서 PIL(Python Imaging Library)이 설치 되지 않았다.

% pip install PIL
Downloading/unpacking PIL  
Could not find any downloads that satisfy the requirement PIL  
Some externally hosted files were ignored (use --allow-external PIL to allow).  
Cleaning up...  
No distributions at all found for PIL  
이런.. 에러 내용대로 PIL이 필요로 하는 외부 호스트에 있는 파일이 무시되어있기 때문에 인스톨 실패했으므로 --allow-external PIL 옵션을 추가하라는 말인듯.
% pip install PIL --allow-external PIL --allow-unverified PIL  
이렇게 다시 시도. 그런데 이번에는..
'freetype/fterrors.h' file not found  
라는 에러가 나왔다. freetype 관련 헤더가 없다고 하는 듯 freetype2에 symlink를 해줬다.
% ln -s /usr/local/include/freetype2 /usr/local/include/freetype
인스톨 성공