Python Forum
How to get output in a file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get output in a file?
#1
Hello, How can python put his output in a file (.docx)?
Thanks, if u can help me <3
Reply
#2
python-docx is library to work with docx files.
here is the documentation:
https://python-docx.readthedocs.io/en/latest/
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(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.
Reply
#4
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Output File ? Kessie1971 11 2,015 May-11-2023, 08:31 AM
Last Post: buran
  reading text file and writing to an output file precedded by line numbers kannan 7 10,413 Dec-11-2018, 02:19 PM
Last Post: ichabod801
  Multiple XML file covert to CSV output file krish143 1 3,347 Jul-27-2018, 06:55 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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