【问题标题】:Jupyter notebook Import tensorflow_hub error: No module named tensorflow.python.training.trackingJupyter notebook Import tensorflow_hub error: No module named tensorflow.python.training.tracking
【发布时间】:2020-08-17 20:38:39
【问题描述】:

我正在使用适用于 TensorFlow 2(+Keras2) 的 Deep Learning AMI (Amazon Linux) 版本 27.0 和 Python3(CUDA 10.1 和 Intel MKL-DNN)。我通过

安装了 tensorflow_hub
python3 -m install tensorflow_hub latest

但是当我将它导入 Jupyter 笔记本时,我收到以下错误。任何想法这个错误可能意味着什么?

【问题讨论】:

  • TF 2.x 哪个版本?

标签: tensorflow amazon-ec2 jupyter-notebook tensorflow-hub


【解决方案1】:

已解决:我卸载了所有以前的 TensorFlow 版本并专门安装了 Tensorflow 2.0,如下所示:

pip3 uninstall tensorflow 
pip3 install tensorflow==2.0
pip3 install tensorflow_hub latest

【讨论】:

    猜你喜欢
    • 2020-03-03
    • 1970-01-01
    • 2017-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-08
    • 2014-07-17
    • 2013-09-14
    相关资源
    最近更新 更多