![](https://karasan-itips.com/wp-content/uploads/d7f2006cad73c44851669fa2f71f6143-320x320.jpg)
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
![](https://karasan-itips.com/wp-content/uploads/undraw_hacker_mind-640x434.png)
![](https://karasan-itips.com/wp-content/uploads/undraw_hacker_mind-640x434.png)
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".
![](https://karasan-itips.com/wp-content/uploads/b4000509166afe91fb13974100f9d412-320x320.jpg)
![](https://karasan-itips.com/wp-content/uploads/b4000509166afe91fb13974100f9d412-320x320.jpg)
![](https://karasan-itips.com/wp-content/uploads/b4000509166afe91fb13974100f9d412-320x320.jpg)
Encryption?
Doesn't library do encryption ?
The reason of "RuntimeError: cryptography is required"
![](https://karasan-itips.com/wp-content/uploads/undraw_Questions-640x445.png)
![](https://karasan-itips.com/wp-content/uploads/undraw_Questions-640x445.png)
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
![](https://karasan-itips.com/wp-content/uploads/h2_conclusion-640x360.jpg)
![](https://karasan-itips.com/wp-content/uploads/h2_conclusion-640x360.jpg)
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.
![](https://karasan-itips.com/wp-content/uploads/fdb9c3be3d9516405868eaf0eeeb60d2-320x320.jpg)
![](https://karasan-itips.com/wp-content/uploads/fdb9c3be3d9516405868eaf0eeeb60d2-320x320.jpg)
![](https://karasan-itips.com/wp-content/uploads/fdb9c3be3d9516405868eaf0eeeb60d2-320x320.jpg)
Once you understand the cause of error, you can solve it.