Quote:the IDE claims the module tensorflow.keras does not exist
That is probably because tensorflow.keras is not written in Python and PyCharm can't learn anything about it. I had the same kind of problem using PySide2 in VS Code. All my imports were underlined in red and hovering over the import statement warned that the module could not be found.