ImportError: cannot import name 'abs'

I just installed tensorflow in my Windows pc, and I get this error when I try to import tensorflow

from tensorflow.python.keras._impl.keras.backend import abs ImportError: cannot import name 'abs'
tensorflowkerastensorflow-windows
3 votesJO218.00
1 Answers
JW229.00
3

It's a known issue related to pip and tensorflow installations. You will have to remove tensorflow completely and install again. Just follow these steps

1. uninstalling tensorflow
2. uninstalling protobuf
3. reinstalling tensorlfow

You can take a look at these github issues: Issue1, Issue2

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?