2016-04-27 23 views
0

Ich habe Tensorflow erfolgreich mit Pip installiert. Ich habe Python 2.7.11. Um zu überprüfen, wenn ich mache Pip zeigen Tensorflow, Es zeigt mir, dass Tensorflow 0.8.0 Version erfolgreich installiert ist.Kann Tensorfluss nicht importieren

Aber um die Installation zu testen, ich

tat
$python 
import tensorflow as tf 

i

Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: No module named tensorflow 

dann, wenn ich $ pip Show tun tensorflow ich diese bekommen

Metadata-Version: 2.0 
Name: tensorflow 
Version: 0.8.0 
Summary: TensorFlow helps the tensors flow 
Home-page: http://tensorflow.org/ 
Author: Google Inc. 
Author-email: [email protected] 
Installer: pip 
License: Apache 2.0 
Location: /usr/local/lib/python2.7/dist-packages 
Requires: six, protobuf, wheel, numpy 
Classifiers: 
Development Status :: 4 - Beta 
Intended Audience :: Developers 
Intended Audience :: Education 
Intended Audience :: Science/Research 
License :: OSI Approved :: Apache Software License 
Programming Language :: Python :: 2.7 
Topic :: Scientific/Engineering :: Mathematics 
Topic :: Software Development :: Libraries :: Python Modules 
Topic :: Software Development :: Libraries 
Entry-points: 
[console_scripts] 
tensorboard = tensorflow.tensorboard.tensorboard:main 
+1

Was bedeutet 'pip Show tensorflow' drucken eigentlich? Was ist mit 'python -c 'import sys; Drucken (sys.path) '? –

Antwort

0

Bist Du sicher dass, wenn Sie Python-Interpreter Version 2.7 als Standard aufrufen? versuchen Typ in der Shell

python -V 

, um zu überprüfen, welche Version Standard ist. Wenn es nicht 2.7 ist, versuchen Typ

python2.7 -c "import tensorflow as tf" 

und sehen, ob Sie einen Fehler erhalten

Verwandte Themen