ModuleNotFoundError:没有名为“错误”的模块

时间:2019-07-19 15:22:59

标签: python-3.x tensorflow keras

我使用anaconda安装了tensorflow-gpu和keras。当我运行在colab上测试过的代码时,它显示以下错误

ModuleNotFoundError: No module named 'error'

我尝试重新安装anaconda以及anaconda环境,但是没有任何效果。我也找不到任何解决该问题的方法。

    import os
    import sys
    import random
    import numpy as np
    #import matplotlib.pyplot as plt
    #%matplotlib inline
    import keras
    # import cv2
    from sklearn.model_selection import train_test_split

    #from itertools import chain
    #from skimage.io import imread, imshow #, concatenate_images
    #from skimage.transform import resize
    #from skimage.morphology import label

    from keras.models import Model, load_model, save_model
    from keras.layers import 
    Input,Dropout,BatchNormalization,Activation,Add
    from keras.layers.core import Lambda
    from keras.layers.convolutional import Conv2D, Conv2DTranspose
    from keras.layers.pooling import MaxPooling2D
    from keras.layers.merge import concatenate
    from keras.callbacks import EarlyStopping, ModelCheckpoint, 
    ReduceLROnPlateau
    from keras import backend as K
    from keras import optimizers

    import tensorflow as tf 

    from keras.preprocessing.image import array_to_img, img_to_array, 
    load_img#,save_img

    import time
    t_start = time.time()

执行代码后,我得到 ModuleNotFoundError: No module named 'error'

0 个答案:

没有答案