Why pycharm does not recognise this Keras library?

Viewed 45

I've installed the Keras library on PyCharm for a Python project. Why doesn't PyCharm recognise this library?

import keras.engine.Topology

It gives an error on "Topology", but Keras is imported successfully.

1 Answers

You can import module engine from

import tensorflow.python.keras.engine

however it does not have module "Topology". You need to be more specific which methods you need and import them from different modules.

Related