-1

My python version is 3.6. I am able to install the pyPDF2. Ran pip install pyPDF2 successfully.

Ran pip list, it shows up as 1.26.0 enter image description here

My environment is not base, but I set up an environment as pytorch. pyPDF2 is installed successfully in this environment.

It pops error when I tried to import it. (typo fixed from the original post)  (t

Meng Ge
  • 21
  • 1
  • 6
  • What do you see if you run `python -m pip list`? Also, please edit your question to replace your screenshots with [markdown formatted code](https://stackoverflow.com/editing-help). – Shane Bishop Feb 14 '21 at 20:04
  • 1
    **DO NOT post images of code, data, error messages, etc.** - copy or type the text into the question. [ask] – Rob Feb 15 '21 at 00:14

1 Answers1

0

Your import pyPDF is incorrect. Instead try import PyPDF2.

Is also possible your pip does not match your python (this can be the case when multiple python versions are installed at the same time). Try running python -m pip list to confirm what exactly is installed.

Shane Bishop
  • 3,905
  • 4
  • 17
  • 47