使用tabla使用Python读取pdf时发生Java错误
我已经安装了tabla库,用于使用python将pdf读入pandas数据帧。 但是当我运行代码时使用tabla使用Python读取pdf时发生Java错误,java,python-3.x,dataframe,pdf,tabula,Java,Python 3.x,Dataframe,Pdf,Tabula,我已经安装了tabla库,用于使用python将pdf读入pandas数据帧。 但是当我运行代码时 import tabula df=tabula.read_pdf("sample1.pdf",pages='1') 我有个例外 SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed 我尝试过的解决方案: 重新安装Java JDK并确保
import tabula
df=tabula.read_pdf("sample1.pdf",pages='1')
我有个例外
SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
我尝试过的解决方案:
pip安装tabla py卸载和安装tabla