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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -