报错:TypeError: Type already registered for Mapping
tensorflow吧
全部回复
仅看楼主
level 1
烊萌111 楼主
Reloaded modules: tensorflow.python.pywrap_tensorflow, tensorflow.python.platform, tensorflow.python.platform.self_check, tensorflow.python.platform.build_info, tensorflow.python.pywrap_dlopen_global_flags, tensorflow.python.pywrap_tensorflow_internal, _pywrap_tensorflow_internal, tensorflow.python.util, tensorflow.python.util.deprecation, tensorflow.python.platform.tf_logging, tensorflow.python.util.tf_export, tensorflow.python.util.tf_decorator, tensorflow.python.util.tf_stack, tensorflow.python.util.tf_inspect, tensorflow.python.util.decorator_utils, tensorflow.python.util.is_in_graph_mode, tensorflow.python.util.tf_contextlib, tensorflow.core, tensorflow.core.framework, tensorflow.core.framework.graph_pb2, tensorflow.core.framework.node_def_pb2, tensorflow.core.framework.attr_value_pb2, tensorflow.core.framework.tensor_pb2, tensorflow.core.framework.resource_handle_pb2, tensorflow.core.framework.tensor_shape_pb2, tensorflow.core.framework.types_pb2, google.protobuf.internal, google.protobuf.internal.enum_type_wrapper, tensorflow.core.framework.function_pb2, tensorflow.core.framework.op_def_pb2, tensorflow.core.framework.versions_pb2, tensorflow.core.framework.summary_pb2, tensorflow.core.protobuf, tensorflow.core.protobuf.meta_graph_pb2, tensorflow.core.protobuf.saved_object_graph_pb2, tensorflow.core.protobuf.trackable_object_graph_pb2, tensorflow.core.protobuf.struct_pb2, tensorflow.core.framework.variable_pb2, tensorflow.core.protobuf.saver_pb2, tensorflow.core.protobuf.config_pb2, tensorflow.core.framework.cost_graph_pb2, tensorflow.core.framework.step_stats_pb2, tensorflow.core.framework.allocation_description_pb2, tensorflow.core.framework.tensor_description_pb2, tensorflow.core.protobuf.cluster_pb2, tensorflow.core.protobuf.debug_pb2, tensorflow.core.protobuf.rewriter_config_pb2, tensorflow.core.protobuf.verifier_config_pb2, tensorflow.core.protobuf.tensorflow_server_pb2, tensorflow.core.util, tensorflow.core.util.event_pb2, tensorflow.python.framework, tensorflow.python.framework.device, tensorflow.python.tf2, tensorflow.python.framework.device_spec, tensorflow.python.eager, tensorflow.python.eager.context, tensorflow.python.framework.c_api_util, tensorflow.core.framework.api_def_pb2, tensorflow.python.util.compat, tensorflow.python.eager.core, tensorflow.python.framework.errors, tensorflow.python.framework.errors_impl, tensorflow.core.lib, tensorflow.core.lib.core, tensorflow.core.lib.core.error_codes_pb2, tensorflow.python.framework.error_interpolation, tensorflow.python.eager.tape, tensorflow.python.util.lazy_loader
Traceback (most recent call last): File "<ipython-input-23-d69363783f71>", line 1, in <module>
runfile('F:/PythonProgram/use_tensorflow.py', wdir='F:/PythonProgram') File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace) File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace) File "F:/PythonProgram/use_tensorflow.py", line 9, in <module>
import tensorflow as tf File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\__init__.py", line 63, in <module>
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\framework_lib.py", line 25, in <module>
from tensorflow.python.framework.ops import Graph File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\ops.py", line 44, in <module>
from tensorflow.python.framework import composite_tensor File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\composite_tensor.py", line 26, in <module>
from tensorflow.python.util import nest File "C:\Users\caichao\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\util\nest.py", line 1286, in <module>
_pywrap_tensorflow.RegisterType("Mapping", _collections.Mapping)
TypeError: Type already registered for Mapping
2019年06月30日 11点06分 1
level 1
楼主,TypeError: Type already registered for Mapping这个报错事为啥啊
2019年09月03日 09点09分 2
1