【发布时间】:2021-01-01 04:15:37
【问题描述】:
我按照 TensorFlow 网站上的说明安装 tensorflow_hub 并将其安装在 conda 环境中。
$ pip install "tensorflow>=2.0.0"
$ pip install --upgrade tensorflow-hub
我在 anaconda 提示符下运行了上述内容
但我仍然收到 ModuleNotFoundError 的“tensorflow_hub”。
感谢您提供任何帮助。提前致谢
【问题讨论】:
-
可能是您正在使用多个环境
-
使用
python -m pip install --upgrade tensorflow-hub,并将python替换为您想要使用的任何python解释器。 -
嗨 Abhiram kadali,正如 Adam 建议的那样,您能否确认您是否在安装它的
virtual environment中使用importing tensorflow hub。谢谢! -
我的意思是说,请确保您在
Virtual Environment、py3_TF2.0中是importing tensorflow_hub。如果仍然导致错误,请分享您的代码。
标签: python tensorflow tensorflow2.0 tensorflow-hub modulenotfounderror