2016-11-07 2 views
0

나는 ubuntu 14.04입니다.우분투에서 텐서 흐름을 가져 오는 중 오류가 발생했습니다.

i'am의 가져 오기 tensorflow

>>> import tensorflow 

경우 : 내가 수입 tensorflow을 실행할 때 그러나이 오류가 발생했습니다.

RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in <module> 
    from tensorflow.python import * 
    File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module> 
    from tensorflow.python import pywrap_tensorflow 
    File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module> 
    _pywrap_tensorflow = swig_import_helper() 
    File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper 
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) 
ImportError: numpy.core.multiarray failed to import 

무엇이이 문제를 해결 했습니까?

답변

1

numpy 버전을 10 (현재 버전은 9)으로 업데이트해야합니다.

+0

제게 명령주세요. – MohaMed

관련 문제