Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

i have already install keras and tensorflow upgraded version but i face this issue i dont know how to fix this issue #562

@Faiz-datascientist

Description

@Faiz-datascientist

#when i write this code :
"vgg16 = tf.keras.applications.VGG16(include_top=False)
preprocess_input = tf.keras.applications.vgg16.preprocess_input
image = tf.keras_preprocessing.image"

#ISSUE
ImportError: cannot import name 'keras' from partially initialized module 'keras.api.v2' (most likely due to a circular import) (C:\Users\laptop media.conda\envs\tensorflow\lib\site-packages\keras\api_v2_init.py)

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