执行 scrapy爬虫 You do not have a working installation of the service_identity module:

在执行 scrapy crawl domz时,警告:

:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'opentype''.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.


但是不管是 从提示的网址 https://pypi.python.org/pypi/service_identity 下载*.whl安装,还是直接用 pip install service_identity 指令都不行, 

一直提示红色字:

pyasn1-modules 0.2.1 has requirement pyasn1<0.5.0,>=0.4.1, but you'll have pyasn1 0.1.9 which is incompatible.


这时候想,既然是 pyasn1 的默认版本 太低(0.1.9),那就升级,

pip install pyasn1-modules(网上也有其他的指令都是错的)

最后在执行,安装 pip install service_identity .

搞定,不会警告了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值