Re: [Chennaipy] To extract text from docx file using python

2022-06-27 Thread Rengaraj D
On Mon, 27 Jun 2022 at 14:10, vishnu prabha b v wrote: > It doesn't work because python version is 2.7.17 > > On Mon, 27 Jun, 2022, 8:53 am Thirunarayanan Srinivasan, < > tstnara...@gmail.com> wrote: > >> Looks like your installation didn’t go through properly. If you are >> Python3 , can you try

Re: [Chennaipy] To extract text from docx file using python

2022-06-27 Thread vishnu prabha b v
It doesn't work because python version is 2.7.17 On Mon, 27 Jun, 2022, 8:53 am Thirunarayanan Srinivasan, < tstnara...@gmail.com> wrote: > Looks like your installation didn’t go through properly. If you are > Python3 , can you try this. > > pip uninstall python-docx > pip3 install python-docx > >

Re: [Chennaipy] To extract text from docx file using python

2022-06-26 Thread Thirunarayanan Srinivasan
Looks like your installation didn’t go through properly. If you are Python3 , can you try this. pip uninstall python-docx pip3 install python-docx On Mon, 27 Jun 2022 at 8:45 AM vishnu prabha b v wrote: > from docx import document > document = Document('sample.docx') > type(document) > documen

[Chennaipy] To extract text from docx file using python

2022-06-26 Thread vishnu prabha b v
from docx import document document = Document('sample.docx') type(document) document.paragraphs type(document.paragraphs) document.paragraphs(0) document.paragraphs[0].text document.paragraphs[1].text index = 0 for para in document.paragraphs: index+=1 if (len(para.text)>0): print("\