表格-"No module named requests"

tabula-py - "No module named requests"

我正在使用代码 (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

OS: Ubuntu 16.04

Java: 1.8.0_121

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

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