I followed the tutorial on Tensorflow's web site, when I typePip3 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 isNo module named 'tensorflow'
even when I typePip3 show tensorflow I can notice that it exists
- 2Do you open the terminal with
Python3?Amos Egel– Amos Egel2018-01-08 14:26:21 +00:00CommentedJan 8, 2018 at 14:26 - yes, I did, but I could not import tensorflow !!HISI– HISI2018-01-08 14:28:06 +00:00CommentedJan 8, 2018 at 14:28
- 1in the terminal what do you get typing
import sys; sys.version_infoChris_Rands– Chris_Rands2018-01-08 14:29:46 +00:00CommentedJan 8, 2018 at 14:29 - @Chris_Rands this is the output :
sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)HISI– HISI2018-01-08 14:31:13 +00:00CommentedJan 8, 2018 at 14:31 - 1
pip3 show tensorflowshows where it's currently installed, part 2 ofabove commentSteve– Steve2018-01-08 14:51:30 +00:00CommentedJan 8, 2018 at 14:51
1 Answer1
You have two versions of Python 3 installed simultaneously.pip3 installed the package to Python 3.5, butpython3 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 thepip3 version andpython3 version.
This question adresses how to change this conflict. You can either modify the$PATH variable such thatpython3 also points to Python 3.5, or uninstall one of the two python versions.
Comments
Explore related questions
See similar questions with these tags.

