【问题标题】:Python tabula-py cannot import name wrapperPython tabula-py 无法导入名称包装器
【发布时间】:2020-02-06 08:20:18
【问题描述】:

这是我的代码:

from tabula import wrapper
df = wrapper.read_pdf('singapore.pdf')

但它给出了以下错误:

ImportError: 无法导入名称“包装器”

我在 ubuntu 上尝试过,它在那里运行良好,但在 Windows 上我无法使用此代码,因为它总是出现上述错误。我使用以下命令安装了 tabula:

pip3 安装 tabula-py

【问题讨论】:

    标签: python-3.x tabula tabula-py


    【解决方案1】:

    这是我的解决方法,您需要将 java 路径添加到环境变量。更多细节可以在这里找到:

    https://tabula-py.readthedocs.io/en/latest/getting_started.html#get-tabula-py-working-windows-10

    【讨论】:

      猜你喜欢
      • 2018-06-05
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      • 2022-10-15
      • 1970-01-01
      • 1970-01-01
      • 2015-04-02
      • 2023-04-08
      相关资源
      最近更新 更多