Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup error for lxml on Windows #17

Closed
xiaoxu193 opened this issue Dec 16, 2013 · 5 comments
Closed

Setup error for lxml on Windows #17

xiaoxu193 opened this issue Dec 16, 2013 · 5 comments
Labels

Comments

@xiaoxu193
Copy link
Owner

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

@xiaoxu193
Copy link
Owner Author

Or download and install here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

@bcoughlan
Copy link

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.

@wnajar
Copy link

wnajar commented Sep 16, 2014

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!

@xiaoxu193
Copy link
Owner Author

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

@blaqvirus
Copy link

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

Please assist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants