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:

  1. install requirements (libxml2 & libxslt)
  2. then, install lxml command pip install lxml.

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -