2017-10-25 1 views
0

나는 그럼 난 from weasyprint import HTML, CSSfrom weasyprint.fonts import FontConfiguration를 사용하려고 나는 내가 weasyprint에 대한 거부에서하지만 터미널 OSError: ctype.util.find_library() did not manage to locate a library called fontconfig장고 weasyPrint는 fontconfig 오류

에 오류가있어 내가 import weasyprint 수입 PIP와 함께 설치 한 후 PDF 파일을 얻을 필요가 응용 프로그램이 있습니다 나는 여전히 같은 오류가있다. 더 이상의 코드를 작성하지 않으면 import 문이 오류에서 멈추게됩니다. 나는 10 월 현재 장고 django와 weasyprint를 운영 중이다. 맥 OSX에 미리 감사는

답변

0

다시 설치 python -m pip install weasyprint,와 weasyprint하지만 처음 실행

brew install python3 cairo pango gdk-pixbuf libffi