我正在尝试使用textract将我的.doc文件转换为纯文本。
import textract
text = textract.process('path/to/file.extension')
但是我收到此错误
AttributeError: 'module' object has no attribute 'process'
确保您尝试运行的 Python 文件未命名为textract.py
。
如果这是名称,您将收到错误:
AttributeError: 'module' object has no attribute 'process'