Tabula-py - ImportError: No module named tabula

后端 未结 3 842
感情败类
感情败类 2021-01-23 19:47

I am trying to use Tabula-py to read a pdf. I installed tabula-py through pip install tabula-py

I have also installed the required dependencies



        
相关标签:
3条回答
  • 2021-01-23 20:08

    I faced this same issue in Ubuntu.

    First, check the version of the JDK and JRE that are installed on your machine by running java --version and javac --version. Each should have a version greater than 7.

    Then use pip3 to install tabula.

    0 讨论(0)
  • 2021-01-23 20:09

    use this

     import camelot
     tables = camelot.read_pdf('foo.pdf')
     tables.export('foo.csv', f='csv', compress=True)
    
    0 讨论(0)
  • 2021-01-23 20:11

    I got the same issue here when executing on Terminal. However, after I ran by starting with 'ipython3' instead of 'ipython', it worked perfectly. You have to make sure that tabula-py module is installed in python3 directory, not python2

    0 讨论(0)
提交回复
热议问题