AttributeError: 模块'tabula'没有属性'read_pdf
import tabula
from tabula.io import read_pdf
tables =tabula.read_pdf (' C:/Users/mothe/OneDrive/Desktop/Sample.pdf ')
print (tables)
我在使用Visual Studio Code运行下面的代码时,总是遇到这个错误:
AttributeError: module 'tabula' has no attribute 'read_pdf'
我之前安装了tabula,然后又安装了tabula-py,现在我通过 using pip uninstall tabula
卸载了tabula,但问题还是没有解决。我该怎么处理这个问题呢?
我原本希望不会出现这个属性错误,并且能够打印出表格。