【发布时间】:2016-05-24 00:50:03
【问题描述】:
我按照指示作为
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#on-macosx
用于 mac 安装。
安装后我导航到 python 并尝试导入 Tensorflow 并遇到以下问题。
(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
伙计们,我是安装 tensorflow 的新手。所以我需要详细解释 谢谢你
【问题讨论】:
标签: python macos tensorflow deep-learning