If you got this problem, check if you are using tf-nightly or tf-estimate-nightly, etc with:
pip list | grep tf
Try uninstall these tf-*-nightly and reinstall TensorFlow:
pip uninstall tf-nightly pip uninstall tf-estimate-nightly pip install tensorflow --upgrade --force-reinstall
Another workaround is manually to copy “populate_dict_with_module_objects” function from this link (line 827 to 832) and add it to “generic_utils.py” to directly fix what the program complains about in the error message.