【问题标题】:Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found发生异常:ImportError DLL load failed while importing pdftotext: The specified module could not be found
【发布时间】:2020-07-01 07:11:16
【问题描述】:

我是 Python 新手,目前在导入某些库时遇到问题。 在按照此链接Unable to install pdftotext on Python 3.6, missing poppler 的说明进行操作后,我已经通过pip install pdftotextconda install -c conda-forge poppler 安装了pdftotext

现在当我尝试使用 Visual Studio 代码导入 pdftotext 时出现以下错误;

Exception has occurred: ImportError
DLL load failed while importing pdftotext: The specified module could not be found.

【问题讨论】:

  • 你能发布整个错误堆栈跟踪吗?
  • 我已经更新了错误Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found.我得到了好意,检查
  • 代码是否在虚拟环境中运行?你能在 python shell 中运行import pdftotext

标签: python django pdftotext


【解决方案1】:

经过尝试和研究,我终于明白了。

我在 cmd pip install pdftotext==2.1.4 上运行了这个命令

【讨论】:

    【解决方案2】:

    我个人也有同样的问题。我已经解决了

    1. conda 更新 conda。

    然后我重做与之前相同的过程

    1. conda install -c conda-forge poppler
    2. pip install pdftotext

    在这 3 个步骤之后,我成功导入了 pdftotext。我希望它也对你有用。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,奇怪的是 pdftotext 曾经在我运行 Windows 10 的电脑上工作得很好,我什至无法在 python shell 中运行import pdftotext(我得到了同样的错误) , 重新安装 anaconda 并没有改变任何东西

      【讨论】:

      • 运行这个pdftotext==2.1.4
      • 那应该做什么?我在 cmd 上运行它,它只输出“I/O 错误:无法打开文件 '==2.1.4':没有错误。”
      • 这样运行pip install pdftotext==2.1.4
      • 我的 pdftotext 已经是 2.1.4 版本了,反正我卸载了它并用 ==2.1.4 重新安装了它,但错误仍然存​​在,太糟糕了,也许我们有不同的问题
      猜你喜欢
      • 1970-01-01
      • 2020-04-10
      • 2021-06-14
      • 1970-01-01
      • 1970-01-01
      • 2015-12-18
      • 1970-01-01
      • 2021-11-07
      • 2011-12-28
      相关资源
      最近更新 更多