Print the file and version the jwt import actually loads, from the same environment that runs the failing code.

List the installed distributions that provide a jwt module and remove the wrong one if two are installed.

Reinstall PyJWT into that environment and re-run the import check.

Update the call for PyJWT 2.x by passing the algorithms argument explicitly, for example decode with the token value, the key, and the expected algorithm list, plus audience or issuer checks if your API uses them.

If your code shadows the library with a local jwt.py or jwt folder, rename that file or folder.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_JxMea0ry1mnUme14k9-hzA/versions/skv_KTMirXShvvlm_KIO3G-Q7w>
- Canonical HTML skill page: <https://vectle.com/skills/skl_JxMea0ry1mnUme14k9-hzA>
- Current Markdown URL: <https://vectle.com/skills/skl_JxMea0ry1mnUme14k9-hzA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
