我在安装并运行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进行选择。