ModuleNotFoundError:没有名为' tensorflow'怎么解决这个问题?

时间:2017-05-08 20:15:15

标签: machine-learning tensorflow deep-learning keras theano

*我在anaconda 3上遇到了这个问题,我安装了keras,我想使用与keras的tensorflow,而不是theano没关系,当我导入keras得到这个错误时,任何人都可以帮助我* * / / p>

    Using TensorFlow backend.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-c74e2bd4ca71> in <module>()
----> 1 import keras

C:\Users\LibnT\Anaconda3\lib\site-packages\keras\__init__.py in <module>()
      1 from __future__ import absolute_import
      2 
----> 3 from . import activations
      4 from . import applications
      5 from . import backend

C:\Users\LibnT\Anaconda3\lib\site-packages\keras\activations.py in <module>()
      1 from __future__ import absolute_import
      2 import six
----> 3 from . import backend as K
      4 from .utils.generic_utils import deserialize_keras_object
      5 

C:\Users\LibnT\Anaconda3\lib\site-packages\keras\backend\__init__.py in <module>()
     62 elif _BACKEND == 'tensorflow':
     63     sys.stderr.write('Using TensorFlow backend.\n')
---> 64     from .tensorflow_backend import *
     65 else:
     66     raise ValueError('Unknown backend: ' + str(_BACKEND))

C:\Users\LibnT\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in <module>()
----> 1 import tensorflow as tf
      2 from tensorflow.python.training import moving_averages
      3 from tensorflow.python.ops import tensor_array_ops
      4 from tensorflow.python.ops import control_flow_ops
      5 from tensorflow.python.ops import functional_ops

ModuleNotFoundError: No module named 'tensorflow'

0 个答案:

没有答案