我正在处理导入keras库的以下错误:>>> import kerasModuleNotFoundError 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
1 回答
眼眸繁星
TA贡献1873条经验 获得超9个赞
SciPy 需要为您的平台安装以下软件:
Python >= 3.5 NumPy >= 1.13.3
update the libraries for 3.6
https://github.com/scipy/scipy/blob/master/INSTALL.rst.txt#linux
要不然
根据 from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \ImportError: DLL load failed: 找不到指定的模块
Update your C++ redistributable compiler.
要不然
使用以下命令重新安装 scipy:
pip uninstall scipy
pip install scipy
添加回答
举报
0/150
提交
取消