pdfkit 正在 python2 上运行,但它在 python3 中不起作用



import pdfkit

错误:回溯(最近一次调用(:
文件"<stdin>",第 1 行,<module> 导入错误:没有名为"pdfkit"的模块

当我在 python2 中使用 pdfkit 时,它可以正常工作,但如果我在 python3 中使用它会给出上述错误

Python 2 和 Python 3 的包是完全独立的。您必须分别为两个 Python 版本安装任何包。尝试:

sudo python3 -m pip install pdfkit

最新更新