Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'trace' #48

Open
Chauban opened this issue Jan 28, 2022 · 2 comments
Open

ImportError: cannot import name 'trace' #48

Chauban opened this issue Jan 28, 2022 · 2 comments

Comments

@Chauban
Copy link

Chauban commented Jan 28, 2022

我用的是conda的虚拟环境,tf1.5,但是每次运行实例代码(inference和video transfer)总会出错,不知道问题在哪里呢?google说的是升级tf2.0,感觉问题不在这里..
from tensorflow_estimator.python.estimator import estimator File "C:\Users\XU\.conda\envs\anime\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 36, in <module> from tensorflow.python.profiler import trace ImportError: cannot import name 'trace'

@hui121
Copy link

hui121 commented Jul 10, 2022

conda安装tf1.15时,其中tensorflow-estimator库的版本可能不正确,可以手动重新安装该库,conda install tensorflow-estimator=1.15.1

@IngshaPhombo
Copy link

thank you hui121. it solved the error for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants