[Python] FastAPI PyJWT module cannot be resolved even though it is installed

Discussão em 'Python' iniciado por Stack, Agosto 19, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using JWT for a test project with FastAPI, and have encountered an odd problem with JWT, both my IDE and FastAPI says the jwt module could not be found even though it is listed in the .venv Lib file and on pip. Any ideas on how to fix it? I cannot find similar problems online.

    Searching for package file structure from directories with __init__.py files
    ERROR Import error: No module named 'jwt'
    WARNING Ensure all the package directories have an __init__.py file

    Package Version
    ------------ -------
    cffi 1.17.1
    cryptography 45.0.6
    pip 25.2
    pycparser 2.22
    PyJWT 2.10.1

    Continue reading...

Compartilhe esta Página