Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows 10 Python Version
#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


Messages In This Thread
Windows 10 Python Version - by DevSrc8 - Aug-06-2020, 01:45 PM
RE: Windows 10 Python Version - by python_booster - Aug-06-2020, 03:48 PM
RE: Windows 10 Python Version - by DevSrc8 - Aug-06-2020, 03:53 PM
RE: Windows 10 Python Version - by snippsat - Aug-06-2020, 04:38 PM
RE: Windows 10 Python Version - by DevSrc8 - Aug-06-2020, 05:14 PM
RE: Windows 10 Python Version - by snippsat - Aug-06-2020, 11:14 PM
RE: Windows 10 Python Version - by DevSrc8 - Aug-07-2020, 12:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 2 460 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 752 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 933 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,279 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 913 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,869 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,321 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,789 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime
  db migration(db version control) for python lubaz 2 2,777 May-30-2021, 01:36 PM
Last Post: lubaz
  Error on Python Version? ErnestTBass 6 3,517 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