ImportError appears in tensorflow: cannot import name 'trace' error solution

From tensorflow_core.examples.tutorials.mnist import input_data
appears ImportError: cannot import name 'trace' error solution Insert a picture description in the solution to the ImportError: cannot import name 'trace' error
Step 1: Open annacomnda Prompt, activate tensorflow, pip list insert image description here
Step 2: Check whether the versions of tensorflowyu and tensorflow-estimator are consistent. insert image description here
Step 3: Install Enter pip install tensorflow-estimator==1.15.0 to install this version.insert image description here

Step 4: Check again whether the two versions are consistent. insert image description here
Success! insert image description here
Successfully run! !

Reference materials: Configuring tensorflow environment under anaconda by riding a donkey to learn on CSDN

Guess you like

Origin blog.csdn.net/weixin_45953051/article/details/126218041