HISI
HISI

Reputation: 4797

Tensorflow won't import in my Python

I followed the tutorial on Tensorflow's web site, when I type Pip3 list I can see Tensorflow 1.4 in the list but when I start the Python terminal I can't import it, it says that there is No module named 'tensorflow'

even when I type Pip3 show tensorflow I can notice that it exists

Upvotes: 0

Views: 187

Answers (1)

Amos Egel
Amos Egel

Reputation: 1196

You have two versions of Python 3 installed simultaneously. pip3 installed the package to Python 3.5, but python3 opens a Python 3.6 session, where tensorflow is not among the installed packages.

In other words, the reason for your problem is a mismatch between the pip3 version and python3 version.

This question adresses how to change this conflict. You can either modify the $PATH variable such that python3 also points to Python 3.5, or uninstall one of the two python versions.

Upvotes: 2

Related Questions