我正在尝试使用 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'
