python2.7安装tensorflow失败_TensorFlow安装成功,但是无法导入TensorFlow,出现ImportError: No module named tensorflow错误!...

环境:centos7 + python2.7

python版本:

[fyp@localhost ~]$ python -V

Python 2.7.14

使用pip查看:

[fyp@localhost ~]$ pip show tensorflow

Name: tensorflow

Version: 1.6.0

Summary: TensorFlow helps the tensors flow

Home-page: https://www.tensorflow.org/

Author: Google Inc.

Author-email: [email protected]

License: Apache 2.0

Location: /usr/lib64/python2.7/site-packages

Requires: astor, protobuf, gast, tensorboard, six, wheel, absl-py, backports.weakref, termcolor, enum34, numpy, grpcio, mock

Python命令行:

[fyp@localhost ~]$ python

Python 2.7.14 (default, Mar 21 2018, 18:32:19)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow

Traceback (most recent call last):

File "", line 1, in

ImportError: No module named tensorflow

你可能感兴趣的:(python2.7安装tensorflow失败_TensorFlow安装成功,但是无法导入TensorFlow,出现ImportError: No module named tensorflow错误!...)