Today I installed python 3.7 on my windows 10 machine, and most things seem to be working, but when I try to run pip install lxml
the install fails. Rather than finding an appropriate precompiled wheel, it appears to be downloading the source package, running setup.py bdist_wheel
which in turn calls out to visual studio to try to build a C/C++ extension and that fails with:
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
I believe the real question is why it needs to do this recompile in the first place. If I setup a virtual environment with python 3.6.6 on the same machine, pip install lxml
downloads and installs the precompiled wheel just fine.
PyPI seems to have wheels for the lxml on 3.7 on windows, but maybe the platform names aren't matching properly or something. python -V -V
on my machine returns:
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]