ImportError:tensorflow/python/_pywrap_tensorflow.so:错误的ELF类:ELFCLASS64
我想在ImportError:tensorflow/python/_pywrap_tensorflow.so:错误的ELF类:ELFCLASS64,python,tensorflow,deep-learning,nao-robot,Python,Tensorflow,Deep Learning,Nao Robot,我想在robot nao上集成TenserFlow。 我已将库Tensorflow复制到路径:/home/nao,我执行了以下操作: export PYTHONPATH="${PYTHONPATH}:/home/nao/tensorflow" 但是如果我导入一个lib tensorflow。。。然后跑,他打印: Traceback (most recent call last): File "<stdin>", line 1, in <module> File
robot nao
上集成TenserFlow
。
我已将库Tensorflow
复制到路径:/home/nao
,我执行了以下操作:
export PYTHONPATH="${PYTHONPATH}:/home/nao/tensorflow"
但是如果我导入一个lib tensorflow。。。然后跑,他打印:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "tensorflow/python/__init__.py", line 48, in <module>
from tensorflow.python import pywrap_tensorflow
File "tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: tensorflow/python/_pywrap_tensorflow.so: wrong ELF class: ELFCLASS64
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“tensorflow/_init__.py”,第23行,在
从tensorflow.python导入*
文件“tensorflow/python/_init__.py”,第48行,在
从tensorflow.python导入pywrap\u tensorflow
文件“tensorflow/python/pywrap_tensorflow.py”,第28行,在
_pywrap\u tensorflow=swig\u import\u helper()
swig\u import\u helper中的文件“tensorflow/python/pywrap\u tensorflow.py”,第24行
_mod=imp.load_模块(“pywrap_tensorflow”,fp,路径名,描述)
ImportError:tensorflow/python/_pywrap_tensorflow.so:错误的ELF类:ELFCLASS64
有什么问题 通常,您无法通过将现有安装复制到其他计算机来安装TensorFlow。错误消息
错误的ELF类:ELFCLASS64
表示您试图将64位代码(用于本机TensorFlow库)加载到32位进程中。有两种解决方案:
x86_64
处理器,请安装64位版本的Python,并使用pip
安装TensorFlow的一个标准Linux版本