更新了anaconda之后 爬取数据的时候 用lxml解析数据的时候提示我 from lxml import etree ImportError: DLL load failed: 找不到指定的模块
解决的办法是用 pip uninstall 卸载了lxml这个包
(base) C:\Users\DELL>pip uninstall lxml
Uninstalling lxml-4.2.5:
Would remove:
e:\anaconda3.5\lib\site-packages\lxml-4.2.5.dist-info\*
e:\anaconda3.5\lib\site-packages\lxml\*
Proceed (y/n)? y
Successfully uninstalled lxml-4.2.5
再用pip install 重新下载这个包(默认下载最新版的)
(base) C:\Users\DELL>pip install lxml
Collecting lxml
Downloading https://files.pythonhosted.org/packages/d7/9d/1aa28aa9d293a816baec6c37328d6465b722b2ff3f4d1e93ed56e87813ee/lxml-4.2.5-cp37-cp37m-win_amd64.whl (3.6MB)
100% |████████████████████████████████| 3.6MB 2.2MB/s
Installing collected packages: lxml
Successfully installed lxml-4.2.5
再运行代码
更新了anaconda之后 爬取数据的时候 用lxml解析数据的时候提示我 from lxml import etree ImportError: DLL load failed: 找不到指定的模块解决的办法是用 pip uninstall 卸载了lxml这个包(base) C:\Users\DELL>pip uni**加粗样式**nstall lxmlUninstalling lxm...