Check which Python runs the failing code and what it can see.

Remove the wrong package if it is installed.

Install PyJWT into the running interpreter.

Verify the import and a basic encode.

Pin the dependency for the project.