1

我无法在 PyCharm 中导入 tensorflow_hub。我正在使用 Pycharm 2020.1.1

import tensorflow_hub as hub

我在 PyCharm 控制台和 cmd 中尝试过:

pip install tensorflow-hub

但是 PyCharm 仍然没有看到。

4

1 回答 1

1

您可以通过以下方法安装它:

File => Settings... => Project => Python Interpreter => Add button => Search "tensorflow-hub" => Install Pakage

改用. tensorflow-hub_ tensorflow_hub他们是一样的。

它对我有用!

在此处输入图像描述

在此处输入图像描述

于 2020-11-26T15:25:32.630 回答