lzjun567 / python_scripts

一些python相关的演示代码
Apache License 2.0
716 stars 527 forks source link

ImportError: No module named 'pdfkit' #16

Open xpguan opened 7 years ago

xpguan commented 7 years ago

root@raspberrypi:/home/pi/python/crawler_html2pdf/pdf# python3 crawler.py Traceback (most recent call last): File "crawler.py", line 14, in import pdfkit ImportError: No module named 'pdfkit'

这是为啥?

Big2Cat commented 7 years ago

没有安装pdfkit,去搜一下安装方法

pendave commented 7 years ago

是啊 用里面的 import pdfkit 要先 pip install pdfkit

当然还要装 wkhtmltopdf https://wkhtmltopdf.org/index.html s4x4 5 qgx1v9wg9_q y6x