Requirement already up-to-date: pip in c:\python34\lib\site-packages
python -m pip install lxml
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
Failed building wheel for lxml
Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\Owner\\AppData\\Local\\Temp\\pip-build-ya3n6wkd\\lxml\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Owner\AppData\Local\Temp\pip-ytybzl9l-r
ecord\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Owner\AppData\Local\Temp\pip-build-ya3n6wkd\lxml
I was able to fix the installation with the following steps. I hope others find this helpful.
My installation of "pip" was working fine before the problem. I went to the Windows command line and made sure that "wheel" was installed.
C:\Python34>python -m pip install wheel Requirement already satisfied (use --upgrade to upgrade): wheel in c:\python34\lib\site-packages
After that I downloaded the lxml file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and placed it in my python directory "C:\Python34"
In that directory I ran the following:
C:\Python34>python -m pip install lxml-3.4.4-cp34-none-win32.whl
The results were:
Processing c:\python34\lxml-3.4.4-cp34-none-win32.whl Installing collected packages: lxml Successfully installed lxml-3.4.4
I opened PyCharm and lxml module was available. I was able to execute the code without problem.
What I learned (though this may be corrected by others more knowledgeable)
Hope this helps.