这里,将使用lxml的文件进行安装,按步骤如下:
- 下载whl文件,下载地址为https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 。下载对应的版本,例如:这里下载的是lxml-4.6.2-cp36-cp36m-win_amd64。
- 下载完成之后,放在一个文件夹中,然后按【Shift】键同事单击鼠标右键,在弹出的快捷菜单中选择【在此处打开命令串口】选项,打开cmd。
- 使用pip命令进行安装
pip install lxml-4.5.2-cp36-cp36m-win_amd64.whl