如何在pdfquery中解决此回溯错误

时间:2014-04-16 04:27:33

标签: python

当我尝试在pdfquery

中尝试执行tests.py时,我遇到了以下错误
Traceback (most recent call last):
  File "C:\workspace-php\test\pdfminer\pdfminer\tests.py", line 2, in <module>
    import pdfquery
  File "C:\workspace-php\test\pdfminer\pdfminer\pdfquery.py", line 19, in <module>
    from pyquery import PyQuery
  File "C:\workspace-php\test\pdfminer\pdfminer\pyquery.py", line 6, in <module>
    from cssselectpatch import JQueryTranslator
  File "C:\workspace-php\test\pdfminer\pdfminer\cssselectpatch.py", line 7, in <module>
    from cssselect import xpath as cssselect_xpath
ImportError: No module named cssselect

任何身体都知道导致此错误。

1 个答案:

答案 0 :(得分:0)

您没有寻找Traceback错误的解决方案。你在底部寻找错误。

ImportError: No module named cssselect

错误表明python解释器无法在您的系统上找到cssselect库。如果您的计算机上未安装该库,请按照here

说明进行安装