【发布时间】:2016-08-21 16:25:52
【问题描述】:
我已经使用 pip 成功安装了 tensorflow。我有 python 2.7.11。当我执行 pip show tensorflow 时仔细检查,它显示 tensorflow 0.8.0 版本已成功安装。
但是为了测试我所做的安装
$python
import tensorflow as tf
然后我得到
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
当我这样做时 $pip show tensorflow 我明白了
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: opensource@google.com
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
【问题讨论】:
-
pip show tensorflow实际打印的是什么?python -c 'import sys; print (sys.path)呢?
标签: python-2.7 ubuntu tensorflow tensorboard