AttributeError: module 'sys' has no attribute 'setdefaultencoding' code example Example: AttributeError: module 'jwt' has no attribute 'encode' pip install pyjwt