Python Forum
Comparing 2 Files - Step 1, import and remove tags
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comparing 2 Files - Step 1, import and remove tags
#2
(Oct-03-2018, 01:16 AM)JP_ROMANO Wrote: but can't get passed PIP INSTALL DOCX.
That will get the old module,it's pip install python-docx.
python-docx
# Test pip 18.0 is the newest  
C:\Users\Tom
λ pip -V
pip 18.0 from c:\python37\lib\site-packages\pip (python 3.7)

C:\Users\Tom
λ pip install python-docx
Collecting python-docx
  Downloading 
......
Building wheels for collected packages: python-docx
Successfully installed python-docx-0.8.7
λ ptpython
>>> from docx import Document

>>> document = Document('python_div.docx')
>>> for para in document.paragraphs:
...     print(para.text)
Reply


Messages In This Thread
RE: Comparing 2 Files - Step 1, import and remove tags - by snippsat - Oct-03-2018, 05:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Import multiple CSV files into pandas Krayna 0 1,783 May-20-2021, 04:56 PM
Last Post: Krayna
  import numpy in sub-files paul18fr 1 2,103 Aug-06-2019, 12:38 PM
Last Post: chakrimakam
  comparing two columns two different files in pandas nuncio 0 2,463 Jun-06-2018, 01:04 PM
Last Post: nuncio
  import/use data from text files MichealPeterson 1 3,401 Jun-28-2017, 08:51 AM
Last Post: buran

Forum Jump:

User Panel Messages

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