python - 在python中使用tabula读取pdf文件
问题描述
我正在尝试在 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)
解决方案
做这样的事情
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]
你会很高兴的
推荐阅读
- python - 即使在循环中,Python 线程也不会工作两次
- php - 在 pdf 上生成找不到图像或键入未知 barryvdh\dompdf 错误
- javascript - 是否可以将特定的 vuejs 组件导出为可以在浏览器中呈现的静态 HTML JS 代码?
- json - 如何在一个请求中解码两个不同的响应 JSON?
- c# - 无论如何要从 Header 中的 Actions on Google 获取访问令牌?
- java - Sonarqube 8.6.1 - +HeapDumpOnOutOfMemoryError
- javascript - 调用赛普拉斯方法时如何自动增加变量?
- ruby - Ruby on rails,如何从日语单词中删除空格?
- ios - UICollectionView(水平滚动)基于单元格高度的动态高度
- java - 没有为 Runnable 类型的类 Task 执行 Run 方法