0

This error keeps popping up when I try to import tensorflow as tf .. It's stuck from From old code in which I used this : tensorflow.python.keras.utils.generic_utils

I think it's stored somewhere and is repeated to me from memory but I don't have experience with Python so I can't find an explanation.

1

1 Answer 1

0

Uninstall the tf-nightly packages and then try like below,

pip uninstall tf-nightly
pip install tensorflow --upgrade --force-reinstall
Sign up to request clarification or add additional context in comments.

3 Comments

Well I didn't have tf-nightly but i upgrade tensorflow to 2.11 and the error goes away :)
but now the problem is module 'tensorflow 2.11' has no attribute 'lite' , tensorflow 2.2.1 had lite
The same issue come to me in tensorflow 2.11 and the error remained related to Tensorflow, when I go back to the old one, the error that stuck with it appears, and when I install the new one, its error appears . what I did is that I uninstall python and deleted its file and install it again, this freed me from the stuck error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.