Azan Haider
Azan Haider

Reputation: 1

How can I fix this import error on Python 3.8 - PyCharm

Here is the error when I try to run the program:

File "/Users/kids/venv/lib/python3.8/site-packages/keras/__init__.py", line 3, in <module>
    from .keras import activations
ModuleNotFoundError: No module named 'keras.keras'

Process finished with exit code 1

And, this is the line that it is saying that has a issue:

from .keras import activations

Upvotes: 0

Views: 441

Answers (1)

MarekUlip
MarekUlip

Reputation: 90

It looks that the error is at the dot (.) before keras name. Try:

from keras import activations

Upvotes: 1

Related Questions