Jesper.Lindberg
Jesper.Lindberg

Reputation: 339

Can't import tensorflow in PyCharm

I'm trying to import tensorflow in PyCharm, however I get an error that the module is not found. I used pip install to install tensorflow. Also when I look at the interpreter in PyCharm it says I have pip version 9.0.1 and the latest is 10.0.1. I have upgraded to 10.0.1 using the pip commands, and when I run pip --version it says I got 10.0.1. I have tried both reinstalling pycharm and making new projects with no luck.

Upvotes: 1

Views: 11903

Answers (3)

Guilherme Freire
Guilherme Freire

Reputation: 83

This video explain it on a very simple way: https://www.youtube.com/watch?v=K9ypGzuP6xQ

Basically, TensorFlow is not by default installed on PyCharm virtual environment. You can do it by downloading in the Project Interpreter menu

Upvotes: 0

dennis-w
dennis-w

Reputation: 2156

Go to Files -> Settings -> Project:projectname -> Project Interpreter

It's possible, that there is a different interpreter choosen for your project then the one you installed tensorflow in. If you're running on linux you can check with "which pip" the path to your python distro in which you installed tensorflow.

Upvotes: 6

swarup260
swarup260

Reputation: 126

try cleaning System Cache

On the main menu, choose File | Invalidate Caches/Restart.

The Invalidate Caches

Cleaning Cache

Upvotes: -1

Related Questions