+ 我要发布
我发布的 我的标签 发现
浏览器扩展
斑点象@Edge

苹果系统下生成pdf报错:No wkhtmltopdf executable found

重点: 不要在PyCharm里直接安装 wkhtmltopdf !!! 从wkhtmltopdf官网下载macOS下的pdg安装包,下载页面:wkhtmltopdf 下载完后安装,通过 which 找到安装路径 ``` import pdfkit config = pdfkit.configuration(wkhtmltopdf='/usr/local/bin/wkhtmltopdf') pdfkit.from_string("abc", "0.pdf", configuration=config) ```
我的笔记