title: ModuleNotFoundError: No module named 'tensorflow.keras', but terminal tells me that i have
body: <p>Running machine learning python from (<a href="https://github.com/cyrixninja/Waste-Classifier-V2" rel="nofollow noreferrer">https://github.com/cyrixninja/Waste-Classifier-V2</a>). This gives me an error below. However, I can confirm my tensorflow by pip3 show tensorflow and just in case, I re-installed tensorflow here. But No Module error is alerting too many times.</p>
  <p>python3 plastic_classifier.py</p>
  <pre><code>Using TensorFlow backend.
  Traceback (most recent call last):
    File &quot;./plastic_classifier.py&quot;, line 6, in &lt;module&gt;
  from tensorflow.keras.optimizers import RMSprop
  ModuleNotFoundError: No module named 'tensorflow.keras'
  </code></pre>
  <p>pip3 show tensorflow</p>
  <pre><code>Name: tensorflow
  Version: 1.12.0
  Summary: TensorFlow is an open source machine learning framework for everyone.
  Home-page: https://www.tensorflow.org/
  Author: Google Inc.
  Author-email: opensource@google.com
  License: Apache 2.0
  Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
  Requires: absl-py, astor, gast, grpcio, keras-applications, keras-preprocessing, numpy, protobuf, six, tensorboard, termcolor, wheel
  Required-by: 
  </code></pre>
  <p>pip install tensorflow-macos</p>
  <pre><code>Successfully installed MarkupSafe-2.1.1 absl-py-1.2.0 astunparse-1.6.3 flatbuffers-1.12 gast-0.4.0 google-auth-2.11.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.47.0 h5py-3.7.0 keras-2.9.0 keras-preprocessing-1.1.2 libclang-14.0.6 markdown-3.4.1 opt-einsum-3.3.0 protobuf-3.19.4 pyasn1-0.4.8 pyasn1-modules-0.2.8 rsa-4.9 tensorboard-2.9.1 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-estimator-2.9.0 tensorflow-macos-2.9.2 termcolor-1.1.0 werkzeug-2.2.2 wrapt-1.14.1
  </code></pre>
  <p>pip install tensorflow-metal</p>
  <pre><code>Successfully installed tensorflow-metal-0.5.1
  </code></pre>
  <p>I would leave some information that I tried <a href="https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-mac-metal-jul-2021.ipynb" rel="nofollow noreferrer">https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-mac-metal-jul-2021.ipynb</a></p>
  <p>System information</p>
  <ul>
  <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS</li>
  <li>Monterey 12.3.1 TensorFlow version: 1.12.0 Python version: 3.10.6</li>
  <li>Installed using virtualenv? pip? conda?</li>
  </ul>