xiaoxu193/PyTeaser

Setup error for lxml on Windows

xiaoxu193 opened this issue · 5 comments

This is a problem with lxml package on Windows if you install with "pip install lxml", or the setup file.

error: Unable to find vcvarsall.bat

Current fix is to install lxml manually on windows using "easy_setup lxml==2.3.3" as suggested here: http://stackoverflow.com/a/9643941

It's a problem with C extensions in general, you need a C compiler to build it, it's looking for vcvarsall.bat to build with Microsoft's C compiler. On Linux you need certain libraries installed to build it (or else install a version of it via your package manager). It makes it a pain for virtualenvs, but I don't think there's an easy solution to this problem.

This isn't specific to your repo, it's a problem with lxml (and other packages like myql-python) everywhere on Windows. Easiest fix is to just download the binary. Thanks, Obama!

Ya, unfortunately there's no way around it. I included the binary in the README though

hi guys im getting this error here-
from .. import etree
ImportError: cannot import name etree

Please assist