Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows 10 Python Version
#1
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!
Reply
#2
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
Reply
#3
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!
Reply
#4
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.
Reply
#5
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?
Reply
#6
(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.
Reply
#7
I understand what you are saying and I really appreciate you clarifying!

I have reviewed your recommended tutorial. thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 2 395 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 680 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 873 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,200 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 855 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,713 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,262 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,647 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime
  db migration(db version control) for python lubaz 2 2,702 May-30-2021, 01:36 PM
Last Post: lubaz
  Error on Python Version? ErnestTBass 6 3,421 Dec-09-2020, 04:02 PM
Last Post: ErnestTBass

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020