버그처리

RuntimeError: 'cryptography' 에러

동석해요 2023. 4. 30. 19:45
728x90
SMALL
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

이 오류는 MySQL 연결을 설정할 때 sha256_password 또는 caching_sha2_password 인증 방법을 사용하려면 필요한 cryptography 패키지가 설치되지 않았음을 나타낸다.

 

이 패키지는 MySQL 8.0 이상에서 기본으로 사용되는 인증 플러그인인 caching_sha2_password를 지원하기 위해 필요하다.

이 문제를 해결하려면 cryptography 패키지를 설치

pip install cryptography

 

728x90
SMALL