[Python] transformers No module named 'keras.engine'

Discussão em 'Python' iniciado por Stack, Fevereiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    I have transformers 4.25.1 and Keras 3.4.1 with Python 3.9 under Windows. permutation_importance uses transformers\utils\import_utils.py which produces:

    line 1095, in _get_module
    raise RuntimeError(
    RuntimeError: Failed to import transformers.modeling_tf_utils
    because of the following error
    No module named 'keras.engine'

    Continue reading...

Compartilhe esta Página