from lxml import etree ImportError: DLL load failed: 找不到指定的模块

    xiaoxiao2023-11-09  150

    更新了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

    作者:长沙彭于晏_ 来源: 原文:https://blog.csdn.net/weixin_42378365/article/details/85017115 版权声明:本文为博主原创文章,转载请附上博文链接!

    最新回复(0)