python tabula 使用方法_Python tabula py不会读取pd

我试图从一系列PDF文件中提取表,但无法使tabula py工作。我一直试图通过Windows操作系统上的Jupyter笔记本来使用它。不幸的是,我也一样‘FileNotFoundError’

每次我尝试使用read_PDF()时。

从目前为止我在网上发现的情况来看,这个错误似乎是在尝试运行tablajava文件时产生的。我已经正确安装了java。

我们将非常感谢您的帮助。

这是我试图运行的代码:from tabula import read_pdf

df = read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf")

错误消息:FileNotFoundError Traceback (most recent call last)

in ()

1 from tabula import read_pdf

----> 2 df = read_pdf("https://github.com/tabulapdf/tabula-java/raw/master/src/test/resources/technology/tabula/arabic.pdf")

C:\Program Files\Anaconda3\lib\site-packages\tabula\wrapper.py in read_pdf(input_path, **kwargs)

64

65 try:

---> 66 output = subprocess.check_output(args)

67 finally:

68 if is_url:

C:\Program Files\Anaconda3\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)

624

625 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

--> 626 **kwargs).stdout

627

628

C:\Program Files\Anaconda3\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)

691 kwargs['stdin'] = PIPE

692

--> 693 with Popen(*popenargs, **kwargs) as process:

694 try:

695 stdout, stderr = process.communicate(input, timeout=timeout)

C:\Program Files\Anaconda3\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)

945 c2pread, c2pwrite,

946 errread, errwrite,

--> 947 restore_signals, start_new_session)

948 except:

949 # Cleanup if the child failed starting.

C:\Program Files\Anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)

1222 env,

1223 cwd,

-> 1224 startupinfo)

1225 finally:

1226 # Child is launched. Close the parent's copy of those pipe

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值