Cause: No module named 'tensorflow_core.estimator' (solution)

1. Problem description: Prepare to execute the following commands in VS code:

x_input, x_output = gcn_lstm.in_out_tensors()

The result is an error: Cause: No module named 'tensorflow_core.estimator'

WARNING: AutoGraph could not transform <bound method FixedAdjacencyGraphConvolution.call of <stellargraph.layer.gcn_lstm.FixedAdjacencyGraphConvolution object at 0x0000015F1D634F28>> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: No module named 'tensorflow_core.estimator'

2. Solution: Open Cmd and view the conda list of the operating environment

tensorflow                2.1.0           eigen_py36hdbbabfe_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow-base           2.1.0           eigen_py36h49b2757_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow-estimator      2.6.0

If the tensorflow-estimator version is inconsistent with tensorflow, you need to change to a consistent version:

conda install tensorflow-estimator==2.1.0

3. Restart VS code to see if there is still an error.

 done.


Reference link:

ModuleNotFoundError: No module named 'tensorflow_core.estimator' The solution has been resolved, please refer to

Guess you like

Origin blog.csdn.net/baidu_30506559/article/details/121876011