Python 在raspberry pi 2上导入tensorflow时出错

Python 在raspberry pi 2上导入tensorflow时出错,python,numpy,tensorflow,raspberry-pi,Python,Numpy,Tensorflow,Raspberry Pi,在我的raspberry pi上从源代码安装tensorflow后,导入tensorflow会出现以下错误: import tensorflow Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> from tensorflow.python.

在我的raspberry pi上从源代码安装tensorflow后,导入tensorflow会出现以下错误:

import tensorflow
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/usr/lib/python3.4/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
ImportError: /usr/local/lib/python3.4/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: wrong ELF class: ELFCLASS64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/usr/lib/python3.4/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
ImportError: /usr/local/lib/python3.4/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: wrong ELF class: ELFCLASS64
以及:


然后在导入tensorflow时,它给出了第一个错误。

您的错误
\u pywrap\u tensorflow\u internal.so:错误的ELF类:ELF类64
表示您试图将64位代码加载到32位进程中
你有什么操作系统? 这成功地在Raspberry Pi 2上安装了tensorflow。 您也可以试试。
请注意,运行Raspberry 2并不是一项简单的任务。你使用了什么官方的tensorflow网站?
至于egg信息警告,请尝试使用
pip安装升级setuptools——升级setuptools pip

Could not find .egg-info directory in install record for numpy>=1.11.0 (from tensorflow==1.2.0)
 Could not find .egg-info directory in install record for protobuf