我剛剛安裝了keras並且是新的。我正在運行windows,通過pip安裝tensorflow,python 3.6。試圖運行「從keras.models導入序列」並得到這個錯誤。有任何想法嗎?錯誤:ModuleNotFoundError:沒有名爲'tensorflow'的模塊
Using TensorFlow backend.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-23-490b9437d5d1> in <module>()
----> 1 from keras.models import Sequential
C:\Users\unknow\Anaconda3\lib\site-packages\keras\__init__.py in <module>()
1 from __future__ import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
C:\Users\unknow\Anaconda3\lib\site-packages\keras\utils\__init__.py in <module>()
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.
C:\Users\unknow\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in <module>()
1 from six.moves import range
2 import numpy as np
----> 3 from .. import backend as K
4
5
C:\Users\unknow\Anaconda3\lib\site-packages\keras\backend\__init__.py in <module>()
81 elif _BACKEND == 'tensorflow':
82 sys.stderr.write('Using TensorFlow backend.\n')
---> 83 from .tensorflow_backend import *
84 else:
85 raise ValueError('Unknown backend: ' + str(_BACKEND))
C:\Users\unknow\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'