Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于 ReportLab 不支持 Python 3,我现在尝试使用 cairo 生成 PDF,它可以工作但缺乏文本换行支持。下一步似乎需要 pango 及其 Python 绑定,但我找不到有关如何为 Windows 安装它的任何信息。
您可以使用 Anaconda 的 conda 包管理器。但是,我从个人实验中发现 pango 与 python3 一起工作,而 cairo 与 python2 一起工作。而你我的朋友被困在中间。
对于 Mac,您可以使用 Brew 安装 Pango:
brew install pango