RuntimeError: 'cryptography' package is required for sha256_password


RuntimeError: 'cryptography' package is required for sha256_password

Python으로 MySQL 사용하다가 다음에러가 발생했다. RuntimeError: 'cryptography' package is required for sha256_password 해당 코드가 실행되지 않으면 문제되지 않는데, 실행된다면 발생한다. 에러 내용을 봐도 쉽게 원인을 알 수 있듯이 'cryptography' 패키지가 없어서 발생한 에러 pip를 이용해 cryptography를 설치하면 간단히 해결된다. pip install cryptography stackoverflow.com/questions/54477829/cryptography-is-required-for-sha256-password-or-caching-sha2-password "cryptography is required for sh..


원문링크 : RuntimeError: 'cryptography' package is required for sha256_password