Python Forum

Full Version: How to get output in a file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, How can python put his output in a file (.docx)?
Thanks, if u can help me <3
python-docx is library to work with docx files.
here is the documentation:
https://python-docx.readthedocs.io/en/latest/
(May-06-2018, 04:30 PM)buran Wrote: [ -> ]python-docx is library to work with docx files.
here is the documentation:
https://python-docx.readthedocs.io/en/latest/
I get the error 'No module named docx' when i use that library thing.
it's an external package - i.e. not part of Python standard library. You need to install it first from PyPI. There are installation instructions in the documentation link. Use pip:
pip install python-docx