0

getting below error

import jwt return jsonify({'token': token.decode('utf-8', algorithms=["HS256"])})

AttributeError: 'str' object has no attribute 'decode'

PyJWT --> 2.1.0 and want to downgrade to 1.7.0

Where this issue I won't see.

davidism
  • 121,510
  • 29
  • 395
  • 339
SAGY
  • 67
  • 7
  • This [answer](https://stackoverflow.com/questions/5226311/installing-specific-package-versions-with-pip) might help you to cope with python package versions. – Sadegh Karimi Aug 18 '21 at 10:46
  • Does this answer your question? [Installing specific package versions with pip](https://stackoverflow.com/questions/5226311/installing-specific-package-versions-with-pip) – Gino Mempin Aug 18 '21 at 13:45

1 Answers1

0

use pip install PyJWT==1.7.0 in the terminal.