python3中是否提供dtl,以及如何安装它?

2024-05-16 13:05:59 发布

您现在位置:Python中文网/ 问答频道 /正文

Dtls library的描述来看,它似乎在python3中不可用。当我想用pip install Dtls安装时,总是有一个

Command "python setup.py egg_info" failed with error code 1 in C:\Users\sun\AppData\Local\Temp\pip-build-c_46y9mt\Dtls\

解决方案here没有帮助。我在Win7上使用python3.6。 DTL还有其他选择吗?在


Tags: installpipinpyinfoeggwithsetup
2条回答

如果您要使用的库对于您的解释器版本不可用,那么您就无法使用该库而不自行移植或等待其他人为您进行移植。这可能不是你想要的。在

这意味着Dtls库只适用于Python2.7和website上提到的OpenSSL库的1.0.0或更高版本,尽管它已经在几个平台(包括您的平台)上测试过:

At the time of initial release, PyDTLS 0.1.0 has been tested on Ubuntu 12.04.1 LTS 32-bit and 64-bit, as well as Microsoft Windows 7 32-bit and 64-bit, using CPython 2.7.3. Patches with additional platform ports are welcome.

As of release 1.2.0, PyDTLS is tested on Ubuntu 16.04 LTS as well as Microsoft Windows 10, using CPython 2.7.13.

如果必须使用Python3.x,您可以使用其他库,例如标准ssl库,或者也可以使用pyOpenSSL库:

pyOpenSSL remains the only alternative for full-featured TLS code across all noteworthy Python versions from 2.7 through 3.5 and PyPy.

Dtls是一个简化实现的库,但您不依赖它。 作为补充说明:对于pyOpenSSL,您还可以通过阅读this post了解如何实现它。在

python3dtls是python3版本的dtls包。在

相关问题 更多 >