简体   繁体   English

如何解决pdfquery中的此追溯错误

[英]How to solve this traceback error in pdfquery

I'm getting following error when I try try to execute tests.py in pdfquery 尝试在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

Any body know which causes this error. 任何人都知道导致此错误的原因。

You do not look for a solution for the Traceback error. 您没有为Traceback错误寻找解决方案。 You look for the error at the bottom. 您在底部查找错误。

ImportError: No module named cssselect

The error suggests that the python interpreter could not find the cssselect library on your system. 该错误表明python解释器无法在系统上找到cssselect库。 If the library is not installed on your machine, install it as per the instructions here 如果您的计算机上未安装该库,请按照此处的说明进行安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM