当前位置: 代码迷 >> python >> pdfkit没有安装或工作?
  详细解决方案

pdfkit没有安装或工作?

热度:56   发布时间:2023-06-13 14:14:45.0

我尝试在python3中使用pdfkit,但是在安装或导入此模块时遇到一些麻烦。

old@old:~/Desktop/some$ pip install pdfkit
Downloading/unpacking pdfkit
  Downloading pdfkit-0.5.0-py2-none-any.whl
Installing collected packages: pdfkit
Successfully installed pdfkit
Cleaning up...
old@old:~/Desktop/some$ python3 second.py 
Traceback (most recent call last):
  File "second.py", line 1, in <module>
    import pdfkit
ImportError: No module named 'pdfkit'
old@old:~/Desktop/some$

我做错了什么?

答案已经在上一个注释中,但是还不够清楚,找不到它。

对于python3,请使用pip3,例如: pip3 install pdfkit