Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

3.8K
Views
Error de Google Colab: no se pudo resolver la importación de "tensorflow.keras.models" (reportMissingImports)
import tensorflow as tf tf.__version__ !sudo pip3 install keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D from tensorflow.keras.preprocessing.image import ImageDataGenerator

Mensaje de error:

 Import "tensorflow.keras.models" could not be resolved(reportMissingImports) >Import "tensorflow.keras.layers" could not be resolved(reportMissingImports) >>Import "tensorflow.keras.preprocessing.image" could not be resolved(reportMissingImports)
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Asunto resuelto.

Aunque el mensaje de error: Import "tensorflow.keras.models" could not be resolved(reportMissingImports) , no afecta a todo el código. Mi versión de Tensorflow es 2.8.0. Acabo de descubrir que el problema está en la configuración de mi modelo cnn.

over 4 years ago · Santiago Trujillo Report

0

import tensorflow as tf tf.__version__ !sudo pip3 install keras from tensorflow.python.keras.engine.sequential import Sequential from tensorflow.python.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D image_data_generator = tf.keras.preprocessing.image.ImageDataGenerator()
over 4 years ago · Santiago Trujillo Report

0

tuve el mismo error, hice esos pasos paso 01 : desinstale el tensorflow existente con esta instrucción

 !pip uninstall tensorflow

paso 02: instale esta versión espero que encuentre lo que necesita en esta versión con esta instrucción

 !pip install tensorflow==2.7.0

puede cambiar la versión de tensorflow si 2.7.0 no es bueno para su código

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!