Написал такой код:
#!/usr/bin/python3 from docx import Document as docx_parser doc_obj=docx_parser('/home/pete/work/orig all - ru.docx') doc_text='\n\n'.join([paragraph.text for paragraph in doc_obj.paragraphs])
Почему
Python 3.4.2 (default, Oct 8 2014, 13:14:40) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from docx import Document as docx_parser
Traceback (most recent call last): File "./tst100.py", line 3, in <module> from docx import Document as docx_parser ImportError: cannot import name 'Document'