1

I have looked various posts about python not getting the installed library. I tried using python -m pip install PyPDF2 to get this library installed but no luck. enter image description here

Edit: site packages enter image description here

Demon
  • 798
  • 6
  • 21

1 Answers1

1

It looks like your PyPDF2 module is install inside the arcgis sub-directory If you add this to the top of your script that should do it

import sys
sys.path.append('c:\python27\argis10.5\lib\site-packages')
import PyPDF2

If you need you can also look into modifying your PYTHONPATH

Edit adding on to Jeff's answer: I added a new pythonpath variable in environmental variables that I was missing to direct the python console to C:\Python27\ArcGIS10.5\Lib\site-packages enter image description here

Demon
  • 798
  • 6
  • 21
JeffCharter
  • 1,263
  • 15
  • 24