-1

我正在使用代码(https://github.com/chezou/tabula-py#example)制作“scripts.py”,当我启动“python scripts.py”时出现此错误:

    Traceback (most recent call last):
  File "script.py", line 1, in <module>
    import tabula
  File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/__init__.py", line 1, in <module>
    from .wrapper import read_pdf_table
  File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/wrapper.py", line 16, in <module>
    import requests
ImportError: No module named requests

操作系统:Ubuntu 16.04

爪哇:1.8.0_121

4

2 回答 2

0

您需要安装请求:http ://docs.python-requests.org/en/master/user/install/#install

于 2017-05-08T17:27:48.157 回答
0

我是 tabula-py 的作者。添加了对 v0.6.1 的请求依赖。 https://github.com/chezou/tabula-py/blob/master/setup.py#L41

于 2017-05-19T03:50:25.023 回答