[Python] install lxml library on windows computer python3.6

1. Download the wheel file of lxml  https://download.lfd.uci.edu/pythonlibs/t5yhk4lc/lxml-4.2.1-cp36-cp36m-win32.whl

    Other versions can be downloaded here  http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

 

2. Installation command

pip3 install lxml‑4.2.1‑cp36‑cp36m‑win32.whl

3. Enter the python interface first under cmd, and then enter

from lxml import etree

If no error is reported, the installation is successful

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325236425&siteId=291194637