Python / Tabula-将PDF读入数据框但出现CalledProcessError

时间:2019-10-26 11:30:10

标签: python tabula

任何人都可以阐明这一点。我正在尝试阅读pdf文件,但出现以下错误。

使用MacOS Sierra 10.12.6

import tabula
# read pdf into dataframe
df = tabula.read_pdf('uni_apps.pdf', pages='all')

错误

CalledProcessError:命令'['java','-Djava.awt.headless = true','-Dfile.encoding = UTF8','-jar','/anaconda3/lib/python3.7/site-packages /tabula/tabula-1.0.3-jar-with-dependencies.jar”、“--pages”、“all”、“--guess”、“uni_apps.pdf”]'返回了非零退出状态1。 / p>

谢谢

0 个答案:

没有答案