I am getting a Module not found error when using jwt. Here is how I declared it:
def create_jwt_token(): payload = { \"iat\": int(time.time(
Apart from (re)installing the PyJWT dependency through pip which other answers already mention make sure following files are not in the current directory (i.e. pwd) you're either running python in or your .py script:
pwd
python
.py
jwt.py token.py