无法在ubuntu

时间:2017-05-09 09:36:13

标签: tensorflow

我的故事是: 首先,我先用pip安装tensorflow,但它不能在SSE4.2中工作。 然后我尝试从源代码安装它。我的环境是: 1)新安装的ubuntu。 2)遵循tensorflow的指令 3)./Configure:

Please specify the location of python. [Default is /usr/bin/python]: **enter**
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: **enter**
Do you wish to use jemalloc as the malloc implementation? [Y/n] **N**
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] **N**
Do you wish to build TensorFlow with Hadoop File System support? [y/N]
No Hadoop File System support will be enabled for TensorFlow
Do you wish to build TensorFlow with the XLA just-in-time compiler (experimental)? [y/N]
Found possible Python library paths:
  /usr/local/lib/python2.7/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python2.7/dist-packages] **enter**
Do you wish to build TensorFlow with OpenCL support? [y/N] **N**
Do you wish to build TensorFlow with CUDA support? [y/N] **N** 

但是,导入tensorflow后我得到了以下问题:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "tensorflow/python/__init__.py", line 72, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
ImportError: cannot import name pywrap_tensorflow


Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

你能帮我指出我的错误吗?非常感谢!

0 个答案:

没有答案
相关问题