raise RuntimeError(RuntimeError: ‘cryptography‘ package is required for sha256_password or caching

The Django project in normal operation was written before. After a period of time, when the project is run again, an error occurs when Python manage.py runserver is started:

Reason: when connecting to the database, cryptography   The package is required.

Solution: PIP install   cryptography。

Run again to successfully resolve:

 

 

 

Read More: