Skip to content

Keras 2.4 release adds dependency on tensorflow>=2.2.0, which breaks earlier installs #14129

@cliffwoolley

Description

@cliffwoolley

Yesterday, June 17, Keras 2.4.0 was released. This is the first numbered release since last October (which was 2.3.1).

Keras 2.4 now brings in tensorflow>=2.2 as a dependency (starting from #14121 , which was merged yesterday). It looks like this is because Keras 2.4 basically now redirects to tf.keras.

The problem, however, is one of compatibility: any user workflow that had pip install keras or packages that have keras in their requirements.txt/setup.py (without pinning to 'keras<2.4' or to some specific earlier version, at least) will now end up replacing existing TensorFlow 1.15 or TensorFlow 2.1 installations (which are the LTS versions as far as I'm aware) with TF 2.2.

I'm not quite sure what to suggest should be done as a corrective action at this point; even if this had been numbered as for example, "Keras 3.0" then still packages that don't pin to a particular maximum Keras version would have fallen into this trap.

Already some NVIDIA customers have started hitting this, so I wanted to open the discussion, at least.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions