Python Forum

Full Version: Windows 10 Python Version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a new 64 bit windows 10 machine and downloaded python 3.8.5 along with anaconda's spider IDE and was unable to get PyPDF2 or Camelot to work for parsing PDFs. Should I be using an older version (python 2.7 or 3.7)?

I have uninstalled both both python and spider for now.

thanks!
Hi DevSrc8, what type of errors were you getting when you tried to install Anaconda? Win 10 does not seem as 'well-behaved' as Win 7 (which MS no longer supports unfortunately).

Cheers,
python_booster
just that the modules where not installed and it could not locate pyPdf2 or camelot. I didn't screen shot them and have since uninstalled both (as mentioned.

also seemed to have to call both anacondas cmd and pythons pip for installing modules before i could import them into spider.

do i need to install anaconda/spider plus python.org or just one.

all in all i need to start doing heavy PDF/text parsing and would love some guidance on steps to start.
1. version of spider or python to use, etc.

thanks!
You most activate (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\Scripts
A couple of resent Thread with this topic you can look at one, two.
so if i want to use spider, to confirm.
1. first download python 3.8.5 (64 bit)?
2. then download anaconda for spider?

and #3...if yes, to the aforementioned #1 and #2 from above post, then should I only being using the conda cmd prompt and not pythons?
(Aug-06-2020, 05:14 PM)DevSrc8 Wrote: [ -> ]so if i want to use spider, to confirm.
1. first download python 3.8.5 (64 bit)?
2. then download anaconda for spider?
You don't need the version from python.org,the recommend way to use Spyder is to use Anaconda3.
With Anaconda3 i mean Individual Edition bottom on site Python 3.8 Graphical Installer (466 MB)
Open Anaconda Navigator the there is launch Spyder button,or with (base) active type spyder command line.
Quote:then should I only being using the conda cmd prompt and not pythons?
Your missing the concept here,python and conda has completely different usage and both can of course be used with Anaconda.
You most read more about this,Anaconda come with conda and pip which is package management(use to eg install stuff).
Have a tutorial here.
I understand what you are saying and I really appreciate you clarifying!

I have reviewed your recommended tutorial. thank you!