I am trying to import a JWT package in Python 2.7 and I am getting SyntaxError: invalid syntax . What can I do to fix this?
SyntaxError: invalid syntax
I tried to install jwt for Python 3 when I need the Pyjwt package for Python 2.7
Logical task of installing jwt in Python 2:
pip install jwt
This results in an error.
The correct setup that worked on my side is:
pip install PyJWT
and it worked.