tensorflow: AttributeError: module 'tensorflow' has no attribute 'estimator'
Hi, for some reason ‘estimator’ isn’t an attribute of ‘tensorflow’ when I test it on Mac.
When I try:
tf.estimator.Estimator(model_fn)
I get this error
AttributeError: module 'tensorflow' has no attribute 'estimator'
This works fine in Linux though. Upgrading pip/conda/tensorflow did not affect this behavior. Is there a workaround?
-Thanks
System information
- Mac OS X 10.9.5 (x86_64-apple-darwin13.4.0)
- TensorFlow installed from binary
- TensorFlow version v1.3.0-rc1-3628-g49f9c6f89 1.5.0-dev20171020
- Python 3.6.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 17
I had the same problem, even with upgrading tensorflow. However, with ‘pip freeze | grep tensorflow’ I saw that I had a ‘tensorflow-estimator’ package that keeps being installed even if I uninstalled tensorflow. After uninstalling it and deleting some related folder in site-packages, and re-installing tensorflow, everything worked. (I’m not sure that this is the best way to solve this problem, but if you are stuck that could help)
me too faced the same issue. Did the following steps
Faced the same issue with tensorflow 2.3.0 and tensorflow-hub 0.10.0. I just solved it by uninstalling tensorflow-estimator, tensorflow-hub and tensorflow, then installed tensorflow and tensorflow-hub.
Now it’s working 😃
I am having this now. Any hints on how to get rid of it. I have TF-1.7 from Anaconda and I just installe the current tensorflow-hub. I am running on linux.