Patrieszka
Patrieszka

Reputation: 53

Import tensorflow_hub in PyCharm

I cannot import tensorflow_hub in PyCharm. I'm using Pycharm 2020.1.1

import tensorflow_hub as hub

I tried in PyCharm console and in cmd:

pip install tensorflow-hub

But PyCharm still does not see it.

Upvotes: 1

Views: 1275

Answers (1)

khoahnd
khoahnd

Reputation: 26

You can install it by method:

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

Use tensorflow-hub instead tensorflow_hub. They are the same.

It work for me!

enter image description here

enter image description here

Upvotes: 1

Related Questions