folgte ich den Befehl alsTensorflow Import Ausgabe mac
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#on-macosx
für Mac-Installation.
Nach der Installation steuere ich Python und versuchte Tensorflow und bekam folgende Probleme zu importieren.
(tensorflow) min:~ min$ python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/codeback/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "/Users/codeback/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 29, in <module>
import ctypes
File "//anaconda/lib/python2.7/ctypes/__init__.py", line 10, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/codeback/tensorflow/lib/python2.7/lib- dynload/_ctypes.so, 2): Symbol not found: __PyInt_AsInt
Referenced from: /Users/codeback/tensorflow/lib/python2.7/lib-dynload/_ctypes.so
Expected in: flat namespace
in /Users/codeback/tensorflow/lib/python2.7/lib-dynload/_ctypes.so
Jungs Ich bin neu bei der Installation Tensorflow. so brauche ich detaillierte Erklärung danke
hallo, thx, aber ich bin auf diese ganz neu. also setze ich einfach $ pip freeze | pip install --ignore-installed --no-use-wheel -r/dev/stdin commend auf meinem Mac-Terminal? bitte geben Sie mir die spezifische Richtung – sayuri
'pip freeze> requirements.txt' Dann ' pip installieren --ignore installiert --no-use-Rad -r requirements.txt' – rrao
$ installieren pip --ignore installiert --no-use-Rad -r requirements.txt deprecation: --no-use-Rad ist veraltet und wird in der Zukunft entfernt werden. Bitte verwenden Sie --no-binary: all: stattdessen. Sammeln Alabaster == 0.7.7 (von -r requirements.txt (Linie 1)) mit zwischengespeicherten alabastern 0.7.7.tar.gz Collecting anaconda-client == 1.4.0 (von -r requirements.txt (Linie 2)) – sayuri