简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM