[Solved] Pymysql Use Error: RuntimeError: ‘cryptography‘ package is required for sha256_password

1. Questions:

When using pymysql, an error runtimeerror is reported: ‘cryptography’ package is required for sha256_password

2. Solution:

Cause: the cryptograph dependency package is missing
solution:

pip install cryptography

After installation, restart the service

Read More: