2

I tried to use the module "tabula" for python, but apparently I already fail at installing. I simply used the code

import tabula

However, I get the following error message:

ModuleNotFoundError: No module named 'tabula'

Any ideas what's up with that?

Bsquare ℬℬ
  • 4,423
  • 11
  • 24
  • 44
Kat
  • 29
  • 1
  • 2

3 Answers3

2

You need to install it priorly, lauching this command in a console:

pip install tabula-py

Edit:

For WIndows 10, check the "Get tabula-py working (Windows 10)" part of this documentation.

Bsquare ℬℬ
  • 4,423
  • 11
  • 24
  • 44
  • Thanks a lot! I tried that, but I get the message The following command must be run outside of the IPython shell: $ pip install tabula-py Right now, I'm using Spyder, maybe that's the problem??? Sorry, if it's a super naive question – Kat Dec 12 '18 at 11:21
  • Which message do you get? – Bsquare ℬℬ Dec 12 '18 at 11:22
  • The following command must be run outside of the IPython shell: $ pip install tabula-py The Python package manager (pip) can only be used from outside of IPython. Please reissue the `pip` command in a separate terminal or command prompt. See the Python documentation for more information on how to install packages: https://docs.python.org/3/installing/ – Kat Dec 12 '18 at 11:26
  • In which terminal did you launch that? On which Operating System? – Bsquare ℬℬ Dec 12 '18 at 11:27
  • I have Windows 10, and I just used the console in the Spyder IDE ..? – Kat Dec 12 '18 at 11:31
  • I completed my answer for Windows 10 ;) – Bsquare ℬℬ Dec 12 '18 at 12:34
  • Thank you so much that's very helpful!! – Kat Dec 12 '18 at 14:11
0

I got the same issue but I solved it by running 'ipython3' instead of 'ipython'. You have to make sure running the script with python3

thp
  • 45
  • 1
  • 6
-1

This line of code is what worked for me:

conda install -c conda-forge tabula-py
Roberto Caboni
  • 7,252
  • 10
  • 25
  • 39
Pythn
  • 171
  • 2
  • 10