无法找出service_identity模块错误的原因

时间:2019-05-02 18:49:09

标签: python windows scrapy

错误是:

UserWarning: You do not have a working installation of the service_identity module: 'cannot import name 'verify_ip_address' from 'service_identity.pyopenssl' (C:\Users\techn\Anaconda3\lib\site-packages\service_identity\pyopenssl.py)'. 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 cryptography
pip install cffi --upgrade
pip install service_identity --upgrade
pip install pyopenssl --upgrade

1 个答案:

答案 0 :(得分:2)

弄清楚了,我需要做exec