본문 바로가기
Developer/Python

Python Django AttributeError: module 'jwt' has no attribute 'decode' or 'encode' 해결 방법

by 김씩씩 2021. 2. 17.

Python django AttributeError: module 'jwt' has no attribute 'decode', AttributeError: module 'jwt' has no attribute 'encode' 해결 방법

 

AttributeError: module 'jwt' has no attribute 'decode'

AttributeError: module 'jwt' has no attribute 'encode'

Python Django 프로젝트에서 볼 수 있는 에러입니다.

 

간단하게 PyJWT 모듈 설치로 해결할 수 있습니다.

pip install PyJWT

 

 

PyJWT를 설치해도 되지 않을 시

jwt, PyJWT를 모두 지우고 다시 PyJWT를 설치하신 뒤 시도해보시면 되겠습니다.

pip uninstall jwt
pip uninstall PyJWT
pip install PyJWT

 

 

도움이 되셨다면 공감, 댓글 부탁드립니다!

궁금하신 점이나 요청사항은 언제든지 말씀해주세요!

피드백도 언제나 환영입니다!

 

감사합니다.


댓글