0

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

Veltzer Doron's user avatar
Veltzer Doron
9742 gold badges12 silver badges31 bronze badges
askedJan 8, 2018 at 14:24
HISI's user avatar
12
  • 2
    Do you open the terminal withPython3?CommentedJan 8, 2018 at 14:26
  • yes, I did, but I could not import tensorflow !!CommentedJan 8, 2018 at 14:28
  • 1
    in the terminal what do you get typingimport sys; sys.version_infoCommentedJan 8, 2018 at 14:29
  • @Chris_Rands this is the output :sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)CommentedJan 8, 2018 at 14:31
  • 1
    pip3 show tensorflow shows where it's currently installed, part 2 ofabove commentCommentedJan 8, 2018 at 14:51

1 Answer1

2

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.

answeredJan 8, 2018 at 14:41
Amos Egel's user avatar
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.