python-pdfkit相关内容

FileNotFoundError: [Errno 2] No such file or directory: 'which' when using python pdfkit

我有一个奇怪的错误.我尝试使用 pdfkit 将 HTML 字符串转换为 PDF,但我收到“没有这样的文件或目录:'which'".我知道 pdfkit 使用 wkhtmltopdf,它试图通过使用 which 来找到这个实用程序.我不知道发生了什么.'which' 工作正常并且 wkhtmltopdf 安装在/usr/bin/上.我在这一行收到错误: pdf = pdfkit.from_str ..
发布时间:2021-09-27 20:16:39 其他开发