Spider——scrapy运行报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37049781/article/details/87929862

错误信息:

: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.

解决方案

从错误信息中可以查看到 service_identity 这个模块出现了一点错误,让我们到模块的主页中下载安装

然后就去安装了 pip install service_identity 结果是所有依赖Requirement already satisfied,看起来安装过了。

再次运行依旧报错,所以基本断定模块安装的有问题或者是版本不对,尝试一下pip install service_identity --force --upgrade 成功!

猜你喜欢

转载自blog.csdn.net/qq_37049781/article/details/87929862