pdfkit没有安装或工作?

问题描述 投票:2回答:1

我尝试在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$

我做错了什么?

python python-3.x installation pip pdfkit
1个回答
0
投票

答案已经在之前的评论中,但不够清楚,无法找到它。

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

© www.soinside.com 2019 - 2024. All rights reserved.