Hmm, Python displays "cryptography is required" error.
One day, when I tried to connect to MySQL from Python, I got this error.
RuntimeError: cryptography is required
What is this error ?
So today, I will introduce about 'The reason of "RuntimeError: cryptography is required"'.
RuntimeError: cryptography is required
First, what is "RuntimeError: cryptography is required" ?
When I tried to connect to MySQL from Python, I got this error.
The error message says cryptography is required
.
So it seems that system requires "encryption".
It means "encrypt your MySQL password".
Encryption?
Doesn't library do encryption ?
The reason of "RuntimeError: cryptography is required"
The reason why "RuntimeError: cryptography is required" happens is lack of Python cryptographic library.
In order to install cryptographic library, run following command.
pip install cryptography
Right click -> Run as administrator
Conclusion
Today I explained about 'The reason of "RuntimeError: cryptography is required"'.
The reason why "RuntimeError: cryptography is required" happens is lack of Python cryptographic library.
When you face the error, you should install cryptography library.
Once you understand the cause of error, you can solve it.