1.10
---------------------------------------------------------------------------------------------------------------------------------
遇到llamaindex使用SimpleDirectoryReader无法加载pdf文件,
报错:Failed to load file /home/zjy/1月/medrag/data/高尿酸血症.pdf with error: RetryError[<Future at 0x7c5104e4ac20 state=finished raised DependencyError>]. Skipping...
1)确保安装了必要的依赖
SimpleDirectoryReader
使用第三方库(如 PyPDF2
或 pdfminer.six
)来解析 PDF 文件。请确保这些依赖已安装:
pip install PyPDF2 pdfminer.six
报错:Failed to read PDF file: PyCryptodome is required for AES algorithm
2)确保安装了必要的依赖
报错信息表明,当前的环境缺少 PyCryptodome 库,而这个库是用于处理 PDF 文件中可能存在的 AES 加密 的依赖。
解决办法是安装 PyCryptodome:
pip install