在我的应用程序中,我使用tabula包将pdf转换为csv。我写的云函数是python3.7。我把它写成了requirements.txt文件。但我发现了这个错误
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/tabula/io.py", line 91, in _run raise JavaNotFoundError(JAVA_NOT_FOUND_ERROR) tabula.errors.JavaNotFoundError: `java` command is not found from this Python process.Please ensure Java is installed and PATH is set for `java`需求文件
tabula-py==1.4.1main.py
import tabula
df = tabula.read_pdf('/tmp/' + file_id +'.pdf', pages = required_page)[0]
tabula.convert_into('/tmp/' + file_id +'.pdf', '/tmp/' + file_id +'.csv',output_format="csv",pages=required_page, stream=False)我该怎么解决这个问题?有什么别的办法吗?
https://stackoverflow.com/questions/70379154
复制相似问题