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

q3aa0525  于 2023-06-29  发布在  其他
关注(0)|答案(1)|浏览(152)

错误是:
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
lmyy7pcs

lmyy7pcs1#

想明白了,我需要:
pip install service-identity(首选,更新版本)或
conda install -c conda-forge service_identity(2019年已过时的版本)

相关问题