# Python Section 11-9 Working with PDFs: import PyPDF2

**URL:** <https://forum.codewithmosh.com/t/python-section-11-9-working-with-pdfs-import-pypdf2/6832>\
**Category:** Python\
**Created:** [August 16, 2021, 4:48pm UTC](https://forum.codewithmosh.com/t/python-section-11-9-working-with-pdfs-import-pypdf2/6832 "2021-08-16T16:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jan](https://forum.codewithmosh.com/u/jan)\
**Post date:** [August 16, 2021, 4:48pm UTC](https://forum.codewithmosh.com/t/python-section-11-9-working-with-pdfs-import-pypdf2/6832/1 "2021-08-16T16:48:13Z")

</div>

Hi,

Could anyone help? This error has been happening to me quite a few times on different imports, and I am a bit confused. This is the error I see:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/206db80d066221d5de9e6b66824db212820f7ed0.png)  
I imported PyPDF2 and also used pipenv and changed the Python interpreter, but it’s not working. It says that there is no module named PyPDF2. I feel like I might have missed out something crucial that Mosh has said since this error keeps happening in different projects. Can anyone help?

Thanks

---

<div class="post-metadata">

**Author:** ![Ammar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ammar/32/2144_2.png) [@Ammar](https://forum.codewithmosh.com/u/Ammar)\
**Post date:** [August 19, 2021, 10:06pm UTC](https://forum.codewithmosh.com/t/python-section-11-9-working-with-pdfs-import-pypdf2/6832/2 "2021-08-19T22:06:47Z")

</div>

This happen because coderunner extension doesn’t the virtual environment.  
so you will have to change the coderunner extension so it runs the virtual environment.  
Don’t worry Mosh will show you how in the next couple of videos.

For now you can run your code using the terminal but you have to activate the virtual environment.

---

<div class="post-metadata">

**Author:** ![aun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/aun/32/4045_2.png) [@aun](https://forum.codewithmosh.com/u/aun)\
**Post date:** [January 31, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/python-section-11-9-working-with-pdfs-import-pypdf2/6832/3 "2022-01-31T06:02:40Z")

</div>

@jan how do you put the pdf files
