I am trying to use https://github.com/olebole/python-docx/blob/master/docx.py to do some formatting like italic and underline from what I understand it is a extension of the https://github.com/mikemaccana/python-docx project. I have python-docx project installed using pip but I am not sure how to install the https://github.com/olebole/python-docx/blob/master/docx.py project so I just overwrote the docx.py file in my python site-packages folder. But that seems to give me a lot of issues when I write a simple code like this: d = docx.open('example.docx',mode = 'create') d += docx.Text('This is just some test that needs to be italic.',italic = True) docx.writeto('Dokument.docx') docx.close()
I could find just one example on here https://github.com/olebole/python-docx/issues/1 that I am trying to follow.
If someone can point me in the correct direction on this it would really help me out.