Traceback (most recent calllast):
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/examples
/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/
examples/image_retraining/retrain.py", line 108, in <module>
import tensorflow as tf
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/
tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/
tensorflow/python/__init__.py", line 63, in <module>
from tensorflow.python.framework.framework_lib import *
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/
tensorflow/python/framework/framework_lib.py", line 102,
in <module>
from tensorflow.python.framework.importer import
import_graph_def
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/
python/framework/importer.py", line 30, in <module>
from tensorflow.python.framework import function
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/
tensorflow/python/framework/function.py", line 34, in <module>
from tensorflow.python.ops import variable_scope as vs
File "/home/tensorflow/tensorflow/bazel-bin/tensorflow/
examples/image_retraining/retrain.runfiles/org_tensorflow/
tensorflow/python/ops/variable_scope.py", line 191,
in <module>
"""
AttributeError: 'int' object attribute '__doc__'
is read-only
解决方法:
I've just come across this too, and I noticed that there was an issue
about this in tensorflow recently. The solution is the
following workaround:
Uninstall enum, if you've already installed it:
sudo pip remove enum
sudo apt-get install python-enum34
Try again.