I have found the solution! The main idea is that you cannot use Python 3.10.8, but it worked with Python 3.8.10. You can read the remainder of this message ONLY if you want to know how I solved the problem.
I have Python 3.10.8 installed in
C:/Users/JJohnson/AppData/Local/Programs/Python/Python310/python.exe
I downloaded and installed Python 3.8.10 - May 3, 2021:
I downloaded “Windows installer (64-bit)” from https://www.python.org/downloads/windows/:
https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
I installed it to:
C:/Users/JJohnson/AppData/Local/Programs/Python/Python38/python.exe
mkdir C1_W3_Assignment
cd C1_W3_Assignment
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\python -m venv env
env/Scripts/Activate.ps1
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip list
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflow==2.2.0
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflowjs==2.8.5
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install tensorflow-estimator==2.2.0
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install protobuf==3.12.2
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip uninstall numpy
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install numpy==1.19.3
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip install matplotlib==3.4.2
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts\pip list
Populate C1_W3_Assignment.py from C1_W3_Assignment.ipynb
C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\python C1_W3_Assignment.py
Use tensorflowjs (from C:\Users\JJohnson\AppData\Local\Programs\Python\Python38\Scripts) … I cannot show how, since this is part of the assignment.
deactivate
Generate “submission.zip” from 10 “group1-shard*of10.bin” and “model.json”.
“model.json” will contain: “generatedBy”: “keras v2.3.0-tf”, “convertedBy”: “TensorFlow.js Converter v2.8.5”, “modelTopology”: {“keras_version”: “2.3.0-tf”
Submit this “submission.zip” for grading.
rm -Force env
Uninstall Python 3.8.10
Delete C:\Users\JJohnson\AppData\Local\Programs\Python\Python38
Finally, you may forget about Python 3.8.10 and tensorflow 2.2.0 forever
!!!