python_scripts icon indicating copy to clipboard operation
python_scripts copied to clipboard

ImportError: No module named 'pdfkit'

Open xpguan opened this issue 8 years ago • 2 comments

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'

这是为啥?

xpguan avatar Apr 17 '17 05:04 xpguan

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

Big2Cat avatar Apr 19 '17 06:04 Big2Cat

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

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

pendave avatar May 25 '17 01:05 pendave