0% found this document useful (0 votes)
36 views1 page

Upload 2

This document provides instructions for installing the python-docx package. It can be installed using pip, easy_install, or by manually downloading, unpacking, and running setup.py. python-docx depends on the lxml package which must also be installed if not using pip or easy_install.

Uploaded by

Fanny lfjfslf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

Upload 2

This document provides instructions for installing the python-docx package. It can be installed using pip, easy_install, or by manually downloading, unpacking, and running setup.py. python-docx depends on the lxml package which must also be installed if not using pip or easy_install.

Uploaded by

Fanny lfjfslf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Installing — python-docx 0.8.10 documentation https://python-docx.readthedocs.io/en/latest/user/install.

html

Installing

Note
python-docx versions 0.3.0 and later are not API-compatible with prior versions.

python-docx is hosted on PyPI, so installation is relatively simple, and just depends


on what installation utilities you have installed.

python-docx may be installed with pip if you have it available:

pip install python-docx

python-docx can also be installed using easy_install, although this is discour‐


aged:

easy_install python-docx

If neither pip nor easy_install is available, it can be installed manually by down‐


loading the distribution from PyPI, unpacking the tarball, and running setup.py:

tar xvzf python-docx-{version}.tar.gz


cd python-docx-{version}
python setup.py install

python-docx depends on the lxml package. Both pip and easy_install will take
care of satisfying those dependencies for you, but if you use this last method you will
need to install those yourself.

Dependencies
Python 2.6, 2.7, 3.3, or 3.4
lxml >= 2.3.2

 v: latest 

1 of 1 24/9/20, 10:36 pm

You might also like