在根下我跑pip3 install service_identity和easy_install service_identity
两者都安装成功,但警告仍然显示并且客户端无法连接。他们在握手前关闭。
完全警告
:0: UserWarning: 您没有 service_identity >module: 'No module named 'cryptography.x509'' 的有效安装。请从https://pypi.python.org/pypi/service_identity安装它并确保它的所有 >dependencies 都得到满足。如果没有 service_identity 模块,Twisted 只能>执行基本的 TLS 客户端主机名验证。许多有效的>证书/主机名映射可能会被拒绝。