2
我嘗試在python3中使用pdfkit,但在安裝或導入此模塊時遇到一些麻煩。pdfkit是否未安裝或運行?
[email protected]:~/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...
[email protected]:~/Desktop/some$ python3 second.py
Traceback (most recent call last):
File "second.py", line 1, in <module>
import pdfkit
ImportError: No module named 'pdfkit'
[email protected]:~/Desktop/some$
我該怎麼做?
可以顯示'這pip'的結果?它看起來你的pip已經下載了python2x的pdfkit下載pdfkit-0.5.0-py2-none-any.whl' – Ja8zyjits
你使用'pip2'嗎? –
老@老:〜/桌面/約$其中 PIP在/ usr/local/bin目錄/ PIP 老@老:〜/桌面/約$ PIP -V PIP 1.5.6從/ usr/lib目錄/ python2.7/dist-packages(python 2.7) – AlekseyDanchin