当前位置: 代码迷 >> 综合 >> Scrapy Problem: cannot import name 'opentype
  详细解决方案

Scrapy Problem: cannot import name 'opentype

热度:96   发布时间:2023-11-20 00:35:16.0

我在安装并运行scrapy,发现有这样的问题:

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.

解决方法如下:

pip install -I -U service_identity

或者

pip3 install -I -U service_identity

根据安装的pip进行选择。

 

 

 

 

  相关解决方案