【问题标题】:ImportError: DLL load failed while importing pdftotext: The specified module could not be foundImportError:导入pdftotext时DLL加载失败:找不到指定的模块
【发布时间】:2021-02-03 14:58:01
【问题描述】:
我安装了 pdftotext 模块为
-
conda install -c conda-forge poppler
-
pip install pdftotext(我也试过pip install pdftotext==2.1.5),但是我尝试导入它时仍然触发错误,尽管安装成功:
import pdftotext
错误:
ImportError: DLL load failed while importing pdftotext: The specified module could not be found.
IDK 还能做什么;所以,你的帮助将不胜感激:)
【问题讨论】:
标签:
python
cmd
conda
pdftotext
【解决方案1】:
我遇到了同样的问题,发现pdftotext 没有在conda list 中列出。 As it turned out,只需在新环境中运行 pip install pdftotext 即可将 pdftotext 安装为系统范围的软件包,而不是作为当前 conda 环境的特定软件包。
我通过使用以下命令将 pip 安装到我的 conda 环境中解决了这个问题:
conda install pip
之后,我运行了pip install pdftotext==2.1.4(因为 2.1.5 版本不适合我)。
最后,我检查了conda list 以验证安装。
【解决方案2】:
我个人也有同样的问题。我已经解决了
- conda 更新 conda。
然后我重做同样的过程
- conda install -c conda-forge poppler
- pip install pdftotext
在这 3 个步骤之后,我成功导入了 pdftotext。我希望它也对你有用。