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
  db migration(db version control) for python lubaz 2 352 May-30-2021, 01:36 PM
Last Post: lubaz
  Running latest Python version on the Terminal (MAC) Damian 4 578 Mar-22-2021, 07:58 AM
Last Post: Damian
  Optimize a game of life (4 sec for python when 6 ms for C version !) fatango 0 358 Jan-06-2021, 09:13 PM
Last Post: fatango
  Error on Python Version? ErnestTBass 6 873 Dec-09-2020, 04:02 PM
Last Post: ErnestTBass
  Last Python (64bit) version for Windows 7? pstein 3 855 Nov-15-2020, 02:09 PM
Last Post: jefsummers
  Upgrade Python Version ? JohnnyCoffee 2 801 Aug-08-2020, 09:56 PM
Last Post: Larz60+
  Python version on Linux whois1230 5 1,247 Apr-10-2020, 07:12 PM
Last Post: buran
  Wrong pip3 python location or new Version 007fred50 1 1,607 Apr-02-2020, 02:36 PM
Last Post: philgoetz
  Error while trying to see Python version with "sys.executable" karkas 5 1,858 Feb-09-2020, 01:55 AM
Last Post: karkas
  update certbot's python version metulburr 0 1,754 Sep-19-2019, 11:51 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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