ImportError:DLL load failed:找不到指定的程序

pip list可以看到scrapy包,但是import scrapy 或者 scrapy startproject xxx时,却报错 :ImportError:DLL load failed:找不到指定的程序

 

这是因为有的lxml包中不包含"etree",我的解决方案是到https://www.lfd.uci.edu/~gohlke/pythonlibs/去重新下载一个。打开网页后,搜索"lxml",

ImportError:DLL load failed:找不到指定的程序_第1张图片

由于我的python版本3.6.1,电脑是64位的,所以我选择下载的是

 

下载好后,先用pip uninstall lxml删除掉原来lxml包,再pip install D:\xxxx\lxml-3.8.0-cp36-cp36m-win_amd64.whl 安装lxml

 

搞定!文中的连接大家可以保存一下,有很多其他库可以下载。

你可能感兴趣的:(ImportError:DLL load failed:找不到指定的程序)