小编Dar*_*ogo的帖子

为什么我无法导入Tensorflow.contrib,但出现错误,提示没有名为'tensorflow.python.saved的模块

嗨,我刚刚安装Tensorflow在Mac上,想使用,tf.contrib.slim但是当我使用它时,我得到了

import tensorflow as tf

slim = tf.contrib.slim
Run Code Online (Sandbox Code Playgroud)

错误:

来自tensorflow.python.saved_model.model_utils的文件“ /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/export/export_lib.py”,第25行导入build_all_signature_defs ModuleNotFoundError:没有名为'tensorflow.python.saved_model.model_utils'的模块

我不知道该怎么办,请帮帮我

我用Tensorflow.13.1python 3.7

python tensorflow

3
推荐指数
7
解决办法
1万
查看次数

标签 统计

python ×1

tensorflow ×1