【发布时间】:2020-11-05 22:28:12
【问题描述】:
代码如下
import imgkit
imgkit.from_url('http://google.com', 'out.jpg')
FileNotFoundError Traceback(最近一次调用最后一次)
我已经安装了!pip install imgkit
https://pypi.org/project/imgkit/
来自评论区
import wkhtmltopdf
import imgkit
imgkit.from_url('http://google.com', 'out.jpg')
我遇到了主要错误
【问题讨论】:
-
你也需要安装
wkhtmltopdf -
@ZWang 我也安装了,
-
无需导入wkhtmltopdf,安装即可。您使用的是哪个系统(Windows/Linux)以及您使用的是哪个版本的 python?
标签: python