在python spyder中找不到模块'Tabula'



我尝试运行以下代码:

from tabula import read_pdf
df = read_pdf("../pdf/Documentacao.pdf")
print(df)

并得到了这个:

runfile('C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py', wdir='C:/Users/Henri/git/Git/PDS1/dev/lib')
Traceback (most recent call last):
File "<ipython-input-4-e12a8a26bbfa>", line 1, in <module>
runfile('C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py', wdir='C:/Users/Henri/git/Git/PDS1/dev/lib')
File "C:UsersHenriAnaconda3libsite-packagesspyder_kernelscustomizespydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:UsersHenriAnaconda3libsite-packagesspyder_kernelscustomizespydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Henri/git/Git/PDS1/dev/lib/planilhas01.py", line 1, in <module>
from tabula import read_pdf
ModuleNotFoundError: No module named 'tabula'

这是我的蟒蛇说的:

(base) C:UsersHenri>pip install tabula-py
Requirement already satisfied: tabula-py in c:usershenriminiconda3libsite-packages (1.4.1)
Requirement already satisfied: pandas in c:usershenriminiconda3libsite-packages (from tabula-py) (0.25.1)
Requirement already satisfied: distro in c:usershenriminiconda3libsite-packages (from tabula-py) (1.4.0)
Requirement already satisfied: numpy in c:usershenriminiconda3libsite-packages (from tabula-py) (1.17.2)
Requirement already satisfied: python-dateutil>=2.6.1 in c:usershenriminiconda3libsite-packages (from pandas->tabula-py) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in c:usershenriminiconda3libsite-packages (from pandas->tabula-py) (2019.3)
Requirement already satisfied: six>=1.5 in c:usershenriminiconda3libsite-packages (from python-dateutil>=2.6.1->pandas->tabula-py) (1.12.0)

我认为是关于目录的,但是什么??

(base( C:\Users\Henri>pip install tabula-py 已满足要求:c:\users\henri\miniconda3\lib\site-packages (1.4.1( 中的tabula-py 我认为已安装,只是您需要确保安装它的 Python 环境,因为可能安装在 python3 目录中,而不是 python2。

相关内容

  • 没有找到相关文章

最新更新