service_identity 已安装但不工作

Mic*_*ael 3 ssl websocket python-3.x autobahn

在根下我跑pip3 install service_identityeasy_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 客户端主机名验证。许多有效的>证书/主机名映射可能会被拒绝。

Mic*_*ael 5

固定与以下,

pip3 install cryptography

pip3 install cffi --upgrade

pip3 install service_identity --upgrade

pip3 install pyopenssl --upgrade