【问题标题】:Error while importing pdftotext module in spyder在 spyder 中导入 pdftotext 模块时出错
【发布时间】:2025-12-19 10:30:12
【问题描述】:

所以,我一直在尝试安装 pdftotext 模块,我尝试了很多方法,唯一有效的方法是使用 miniconda 安装 poppler,然后安装 pdftotext(anaconda 的主要问题是 poppler 没有安装)。所以,在我用 miniconda 安装它并尝试用 spyder 导入它之后,它给出了错误,所以我手动将与 pdftotext 相关的每个文件从 miniconda 复制到 anaconda(考虑到它们的位置)。现在,如果我在 anaconda 中键入 pip install pdftotext ,它会说满足要求,但是如果我尝试使用 spyder 导入它,它又会给出错误。This is the anaconda prompt saying that pdftotext is installed. This is the error that shows up after I try to import it in spyder.

【问题讨论】:

    标签: python anaconda spyder pdftotext poppler


    【解决方案1】:

    在你的 In[] 中运行:

    pip.main(["install", "pdftotext"])
    

    您的 Spider 使用 3.8。 请输入终端(不是蜘蛛):python3 -v

    【讨论】: