AttributeError: module 'jwt' has no attribute 'encode' site:stackoverflow.com code example Example: AttributeError: module 'jwt' has no attribute 'encode' pip install pyjwt