How to install lxml on Windows

Or you can also go to Christoph’s Gohlke’s Python page and then download the right lxml file. (Generally since I use python 3.4 and I have a windows, I download the lxml-3.4.4-cp34-none-win32.whl)

Go to the folder it is in. Click in the background (so nothing is selected), then leftshift + rightclick at the same time and click on open command window. Then type
C:/Python34/Scripts/pip install “NAME OF THE FILE YOU JUST DOWNLOADED.whl”

In this case it would be C:/Python34/Scripts/pip install “lxml-3.4.4-cp34-none-win32.whl”

Now hit enter. This worked well for me, and after you type the quote you can also press tab and it should fill the right one for you.

Leave a Comment