Oct-30-2021, 05:11 PM
With no respect due, you are being obtuse. There is no package pypdf2. There is a package PyPDF2. If you type "pip list" do you see your package? Is it pypdf2 or PyPDF2? Use the same capitalization and spelling that appears in the packages list.
If you see PyPDF2 in the package list and you import using the exact same spelling and capitalization and it still fails then you didn't pip the package into the same python that is trying to use it. I ran into this a lot when I first started using virtual environments. I would pip from a command shell, adding the package to my latest Python installation and not into the virtual environment I was programming in.
If you see PyPDF2 in the package list and you import using the exact same spelling and capitalization and it still fails then you didn't pip the package into the same python that is trying to use it. I ran into this a lot when I first started using virtual environments. I would pip from a command shell, adding the package to my latest Python installation and not into the virtual environment I was programming in.