How to install lxml on Windows

前端 未结 7 1864
后悔当初
后悔当初 2020-12-09 08:53

I\'m trying to install lmxl on my Windows 8.1 laptop with Python 3.4 and failing miserably.

First off, I tried the simple and obvious solution: pi

相关标签:
7条回答
  • 2020-12-09 09:25

    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.

    0 讨论(0)
提交回复
热议问题