SyntaxError: Invalid syntax for importing python JWT

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?

enter image description here

+3


source to share


2 answers


I tried to install jwt for Python 3 when I need the Pyjwt package for Python 2.7



+7


source


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.

+1


source







All Articles