django - Unable to install and use python-docx? -
i've been using django build web program enables user input information within form tags file i/o ms word(docx) document. in order that, i've set virtualenv django 1.7.6 , python-docx==0.8.5 installed. problem when include "from docx import document" in views.py, httpresponse 'index.html' returns 'importerror: no module name 'lxml''
as far understand, should problem lxml package, unable fix it. i've installed lxml according lxml documentation, command 'sudo apt-get install python3-lxml' doesn't work. please helpless newbie. thanks.
thanks @jroddynamite's help, able solve problem.
you should:
- install requirements (
libxml2
&libxslt
) - then, install
lxml
commandpip install lxml
.
Comments
Post a Comment