You most activate
For version from python.org look at Python 3.8 (3.6-3.7) and pip installation under Windows
Here manual activate of base from cmder as i use.
(base)
eg trough Anaconda Prompt.For version from python.org look at Python 3.8 (3.6-3.7) and pip installation under Windows
Here manual activate of base from cmder as i use.
G:\ λ cd Anaconda3\Scripts\ # Activate base G:\Anaconda3\Scripts λ activate # See if PyPDF2 is installed (base) G:\Anaconda3\Scripts λ python Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from PyPDF2 import PdfFileWriter, PdfFileReader Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'PyPDF2'So no PyPDF2 have to install it with
pip
or conda(which also has PyPDF2),see (base)
so now will pip
always install to Anaconda3.(base) G:\Anaconda3\Scripts # Test pip λ pip -V pip 20.0.2 from G:\Anaconda3\lib\site-packages\pip (python 3.7) # Install (base) G:\Anaconda3\Scripts λ pip install PyPDF2 Collecting PyPDF2 ..... Successfully installed PyPDF2-1.26.0 # Test that it work. base) G:\Anaconda3\Scripts λ python Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 >>> from PyPDF2 import PdfFileWriter, PdfFileReader >>> >>> import PyPDF2 >>> PyPDF2.__version__ '1.26.0' >>> exit() (base) G:\Anaconda3\ScriptsA couple of resent Thread with this topic you can look at one, two.