[Python] I am trying to write a Python script to read multiple PDFs, but getting an error with...

Discussão em 'Python' iniciado por Stack, Abril 20, 2025.

  1. Stack

    Stack Membro Participativo

    I am new to Python coding. I cannot get out of the gate because the code is not working for PyPDF2. I have run the following command:

    pip install PyPDF2
    Collecting PyPDF2
    Downloading pypdf2-3.0.1-py3-none-any.whl (232 kB)
    \---------------------------------------- 232.6/232.6 kB 4.8 MB/s eta 0:00:00
    Installing collected packages: PyPDF2
    Successfully installed PyPDF2-3.0.1


    IDLE throws this error:

    from PyPDF2 import PdfFileReader
    ModuleNotFoundError: No module named 'PyPDF2'


    What am I missing?

    I have tried reinstalling PyPDF2 using the below options:

    pip install PyPDF2
    Requirement already satisfied: PyPDF2 in

    pip3 install PyPDF2
    Requirement already satisfied: PyPDF2 in


    but they did not work for me.

    Continue reading...

Compartilhe esta Página