我正在处理导入keras库的以下错误:
>>> import keras
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-7-c74e2bd4ca71> in <module>()
----> 1 import keras
/usr/local/lib/python3.6/dist-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
/usr/local/lib/python3.6/dist-packages/keras/utils/__init__.py in <module>()
24 from .layer_utils import get_source_inputs
25 from .layer_utils import print_summary
---> 26 from .vis_utils import model_to_dot
27 from .vis_utils import plot_model
28 from .np_utils import to_categorical
/usr/local/lib/python3.6/dist-packages/keras/utils/vis_utils.py in <module>()
5
6 import os
----> 7 from ..models import Model
8 from ..layers.wrappers import Wrapper
9
/usr/local/lib/python3.6/dist-packages/keras/models.py in <module>()
10 from .engine.input_layer import Input
11 from .engine.input_layer import InputLayer
---> 12 from .engine.training import Model
13 from .engine.sequential import Sequential
14 from .engine.saving import save_model
/usr/local/lib/python3.6/dist-packages/keras/engine/__init__.py in <module>()
6 from .base_layer import Layer
7 from .network import get_source_inputs
----> 8 from .training import Model
/usr/local/lib/python3.6/dist-packages/keras/engine/training.py in <module>()
13 from .base_layer import Layer
14 from . import training_utils
---> 15 from . import training_arrays
16 from . import training_generator
17 from .. import backend as K
/usr/local/lib/python3.6/dist-packages/keras/engine/training_arrays.py in <module>()
6
7 import numpy as np
----> 8 from scipy.sparse import issparse
9
10 from .training_utils import batch_shuffle
眼眸繁星
相关分类