[转]TensorFlow安装问题

1: tensorflow 0.8安装神坑
首先出问题是:_pywrap_tensorflow.so: invalid ELF header
我以为glibc的问题,于是自己编译一个glibc,然后利用export LD_LIBRARY_PATH将lib导入
http://blog.csdn.net/levy_cui/article/details/51251095
然后发现这个错误
>>> import tensorflow as tf
Traceback (most recent call last):
  File "", line 1, in
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 55, in
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in
    from tensorflow.core.framework.graph_pb2 import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/core/framework/graph_pb2.py", line 6, in
    from google.protobuf import descriptor as _descriptor
ImportError: No module named protobuf


本来打算先用apt-get更新一下的,发现没用。之后直接用
pip uninstall protobuf
再次安装tensorflow莫名其妙好了。。。

http://tieba.baidu.com/p/4257266525




原文https://www.douban.com/note/555396940/

你可能感兴趣的:([转]TensorFlow安装问题)