Tensorflow c1_w3_assignment

can’t install !pip install tensorflow==2.2.0 I get this error

ERROR: Could not find a version that satisfies the requirement tensorflow==2.2 (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0)
ERROR: No matching distribution found for tensorflow==2.2

If I install version 2.12.0 or 2.11.1 and save my model to JSON my submissions recieve

“The model in your submission is invalid. Please try again!”

1 Like

Hi @erwincarlogonzales , I am not sure what you are doing but it seems you are trying to install tensorflow package. The point is that the Coursera environment already has all the necessary packages installed. So, what is the issue?

I also have the same error when trying on colab / jupyter notebook. Apparently we can’t install tensorflow version <2.5.

hello sir. Then I had to install a different version of tensorflow (!pip install tensorflow==2.12.0) because the assignment said that if " Using a TensorFlow version >2.2.0 will result in failure of grading.".

On Saving the Model (model.save(x))

and Run the TensorFlow.js Converter on The Saved Keras Model (tensorflowjs_converter --input_format )

I did what was asked and got 10 bin files and a model.json file downloaded and zip them into 1 zip file. Uploaded then submit. I received a failed mark “The model in your submission is invalid. Please try again!”

I was working on this assignment since the April 2nd and wrote several different codes and combination of codes on saving the model and converting it to js to installing different version of tensorflow < 2.2.0 even to go as far as to install a different version python. But I still receive an invalid submission. I have submitted > 10 different submissions but still get the same results. I’m still working on this assignment alone for 10 days now. Please help thank you

In the notebook Coursera, you can add the line print(tf.version) to see which version is being used in Coursera and install the same version in any other platform you are using.

@carlosrl I am using colab. the Coursera notebook says

C1_W3_Assignment.ipynb

" Note: Use TensorFlow version 2.2.0 for this assignment. Using a TensorFlow version >2.2.0 will result in failure of grading."

Now if I run the command “# !pip install tensorflow==2.2.0”

It returns this error the I originally posted

“ERROR: Could not find a version that satisfies the requirement tensorflow==2.2 (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0)
ERROR: No matching distribution found for tensorflow==2.2”

Therefore, our question is what version of tf should we use for this assignment?

Because when using tf 2.12.0 or 2.11.0 my submissions are rejected and is met with the message “The model in your submission is invalid. Please try again!”

You can download 2.2.0 from here

hi @erwincarlogonzales
you can check this tips from Jan_Danel, I think we have same problem and this solution works for me. You have to use anaconda for this one.