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'
3 votesJO218.00
1 Answers

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

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