본문 바로가기

OS/Windows

lxml 설치시 에러 libxml2 windows

Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?

 

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /TcC:\Users\LeeChul\AppData\Local\Temp\xmlXPathInitz1k8o67l.c /FoUsers\LeeChul\AppData\Local\Temp\xmlXPathInitz1k8o67l.obj
    xmlXPathInitz1k8o67l.c
    C:\Users\LeeChul\AppData\Local\Temp\xmlXPathInitz1k8o67l.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LeeChul\\AppData\\Local\\Temp\\pip-install-3t8tendh\\lxml\\setup.py'"'"'; __file__='"'"'C:\\Users\\LeeChul\\AppData\\Local\\Temp\\pip-install-3t8tendh\\lxml\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\LeeChul\AppData\Local\Temp\pip-record-vefw_gdx\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

 

아래 사이트에서 직접 설치 windows 10 에서 amd64.whl 설치.

 

https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

 

Python Extension Packages for Windows - Christoph Gohlke

by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. Updated on 22 October 2019 at 20:45 UTC. This page provides 32- and 64-bit Windows binaries of many scientific open-source extension packages for the official CPyt

www.lfd.uci.edu

pip install "C:\Users\LeeChul\Downloads\lxml-4.4.1-cp38-cp38-win_amd64.whl"

'OS > Windows' 카테고리의 다른 글

윈도우10 다크모드 설정하기.  (0) 2019.10.28
lxml 설치시 에러 Microsoft Visual C++ 14.0 is required  (0) 2019.10.24