9
Tôi đã thử pip install tensorflow
trên OS X El Capitan và nó đã thành công. Tuy nhiên, nếu tôi cố gắng nhập khẩu lưu lượng, ImportError đã xảy ra. Hãy cho tôi biết khi nào bạn biết.Yêu cầu tensorflow với Python 2.7.11 xảy ra ImportError
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/lib/python2.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(/usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so, 10): no suitable image found. Did find:
/usr/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
>>>
Cảm ơn bạn soooo nhiều ! Nó hoạt động! –
yep, hoạt động. kinh ngạc. sẽ lãng phí một tuần để sửa lỗi này. – Wapiti