tabula-py的作者在这里。设置silent=True
可以抑制tabula-java的日志记录。
参见:
https://github.com/chezou/tabula-py/blob/e11d6f0ac518810b6d92b60a815e34f32f6bf085/tabula/io.py#L65
https://tabula-py.readthedocs.io/en/latest/tabula.html#tabula.io.build_options
silent=True
参数:tabula.read_pdf("/path/to/sample.pdf", pages="all", silent=True)
可以尝试这个:
import warnings
warnings.filterwarnings('ignore')
warnings
无法解决。 - chezou