📅  最后修改于: 2023-12-03 15:33:50.965000             🧑  作者: Mango
If you've recently encountered an error with PyOpenSSL requiring cryptography>=3.2 but showing an incompatible cryptography 2.8, then this article is for you.
PyOpenSSL is a robust Python wrapper for the OpenSSL library, which provides encryption, SSL/TLS, and other cryptographic functionalities. PyOpenSSL allows Python developers to easily integrate cryptographic protocols into their Python code.
PyOpenSSL 20.0.0 requires cryptography 3.2 or higher. However, if you have an incompatible cryptography version 2.8 installed, you'll receive the following error message:
pyopenssl 20.0.0 requires cryptography>=3.2, but you'll have incompatible cryptography 2.8.
The error message indicates that PyOpenSSL can't run with your current cryptography version.
You need to update your cryptography version to 3.2 or higher, as PyOpenSSL 20.0.0 requires this. You can use the following commands to update cryptography:
# Upgrade cryptography to the latest version
pip install --upgrade cryptography
Once cryptography is upgraded, PyOpenSSL 20.0.0 should work as intended.
In summary, if you encounter the PyOpenSSL 20.0.0 password requirement error, you need to update your cryptography version to 3.2 or higher. This can be done with a simple pip install command.