2

I am new to Python and currently having trouble when importing some libraries. I have install pdftotext via pip install pdftotext and conda install -c conda-forge poppler after following the instruction from this link Unable to install pdftotext on Python 3.6, missing poppler

Now I get the following error when I try to import pdftotext using visual studio code;

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

enter image description here

Dominic
  • 341
  • 4
  • 15
  • Can you post the whole error stack trace? – abdusco Jul 01 '20 at 07:13
  • I have updated the error `Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found.` I am getting the kindly, check – Dominic Jul 01 '20 at 07:18
  • is the code running inside a virtual env? can you run `import pdftotext` inside a python shell – abdusco Jul 01 '20 at 07:44

3 Answers3

1

After Trying and researching, I finally got it.

I ran this command on cmd pip install pdftotext==2.1.4

Dominic
  • 341
  • 4
  • 15
0

Personally I have had the same question. I have solved it by

  1. conda update conda .

Then I redo the same procedure as before

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

After this 3 steps I import successfully pdftotext. I hope it also works for you.

zhao
  • 1
  • 2
-1

i am having the same issue, the weird thing being that pdftotext used to work just fine on my pc running windows 10, i can't even run import pdftotext in the python shell (i get the same error you got), reinstalling anaconda didn't change anything