我不能在tensorflow_hub中导入PyCharm。我正在使用Pycharm 2020.1.1
import tensorflow_hub as hub我在PyCharm控制台和cmd中尝试过:
pip install tensorflow-hub但是PyCharm仍然没有看到它。
发布于 2020-11-26 15:25:32
您可以通过方法安装它:
File => Settings... => Project => Python Interpreter => Add button => Search "tensorflow-hub" => Install Pakage使用tensorflow-hub而不是tensorflow_hub。他们是一样的。
这对我有用!


https://stackoverflow.com/questions/62331597
复制相似问题