Search code examples
pythontensorflowimportpackageimporterror

tensorflow import error: No module named tensorflow.python.checkpoint


i'm trying to import tensorflow-hub and i'm getting an error:

ModuleNotFoundError: No module named 'tensorflow.python.checkpoint'

full error message

Apparently the folder tensorflow.python.checkpoint doesn't exist in the tensorflow source code that I installed (though it does exist in the github repository of tensorflow)

I'm using

tensorflow                         2.9.1
tensorflow-estimator               2.9.0
tensorflow-hub                     0.8.0

Thanks!


Solution

  • it's probably not a permanent solution, but I think downgrading TensforFlow to version 1.15 should help