[在python中使用制表符读取pdf文件

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

[我正在尝试使用python中的tabula读取pdf文件,但收到这些错误,这是代码。我使用的是python版本3.7和tabula版本2.0.1

from tabula import read_pdf
df=read_pdf('txt.pdf',pages='all')
print(df)

这些是我收到的错误

    Python37_64\lib\site-packages\tabula\io.py", line 85, in _run
    check=True, 

    Python37_64\lib\subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:

    Python37_64\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
python tabula
1个回答
0
投票

只需做这样的事情

from tabula import read_pdf
df=read_pdf('txt.pdf',pages='all')
df

from tabula import read_pdf
df=read_pdf('txt.pdf',pages='all')
df[0]

您会好起来的

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