python - 无法找出 service_identity 模块错误的原因
问题描述
错误是:
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
解决方案
想通了,我需要做conda install service_identity
推荐阅读
- bash - 查找具有给定祖先的提交
- rust - 如何解决可变借用和不可变借用的共存问题?
- numbers - python库快速生成上一个和下一个素数
- atom-editor - 自动大写关键字(对于 SQL)?
- javascript - 如何通过单击使工具提示隐藏?
- android - 电子邮件意图 - 与此操作关联的所有应用程序均已关闭、阻止或未安装
- python - Python:将嵌套列表的整数元素添加到列表中
- wordpress - Wordpress REST API,如何获取 /post 架构?
- django - 没有名为“django.urls”的模块
- python-3.x - 如何点击使用 selenium 搜索 metacritc 的第一个结果