0
Ich versuche ein Programm von GitHub (https://github.com/sherjilozair/char-rnn-tensorflow) zu starten, das erfordert TensorFlow, aber jedes Mal, wenn ich TensorFlow (nicht nur dieses Programm) verwende, erhalte ich den folgenden Fehler :"Kein passendes Bild gefunden" mit Python/TensorFlow
Traceback (most recent call last):
File "train.py", line 3, in <module>
import tensorflow as tf
File "/Library/Python/2.7/site-packages/tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "/Library/Python/2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/Library/Python/2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "/Library/Python/2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: dlopen(/Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): no suitable image found. Did find:
/Library/Python/2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
Ich bin nicht sicher, was los ist, wie kann ich das beheben, damit diese Programme richtig laufen?
Nun existiert das "referenzierte" Bild überhaupt nicht. Entschuldigung, wenn ich einen dummen Fehler mache, aber wie könnte ich das beheben? –
Vielleicht hast du 2 Python-Installationen und es benutzt die falsche. Probiere "welche Python". Probieren Sie auch einen Basistest: Geben Sie den Python-Interpreter ein. Geben Sie "imports tensorflow" ein. –
Ich werde es definitiv ausprobieren, danke! –