Open xpguan opened 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'
这是为啥?
没有安装pdfkit,去搜一下安装方法
是啊 用里面的 import pdfkit 要先 pip install pdfkit
pip install pdfkit
当然还要装 wkhtmltopdf https://wkhtmltopdf.org/index.html
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'
这是为啥?