在 PyCharm 中导入 tensorflow_hub
Import tensorflow_hub in PyCharm
我无法在 PyCharm 中导入 tensorflow_hub。我正在使用 Pycharm 2020.1.1
import tensorflow_hub as hub
我在 PyCharm 控制台和 cmd 中尝试过:
pip install tensorflow-hub
但是PyCharm还是没看到
安装方法:
File => Settings... => Project => Python Interpreter => Add button => Search "tensorflow-hub" => Install Pakage
使用 tensorflow-hub
代替 tensorflow_hub
。他们是一样的。
对我有用!
我无法在 PyCharm 中导入 tensorflow_hub。我正在使用 Pycharm 2020.1.1
import tensorflow_hub as hub
我在 PyCharm 控制台和 cmd 中尝试过:
pip install tensorflow-hub
但是PyCharm还是没看到
安装方法:
File => Settings... => Project => Python Interpreter => Add button => Search "tensorflow-hub" => Install Pakage
使用 tensorflow-hub
代替 tensorflow_hub
。他们是一样的。
对我有用!