tensorflow_addons 가 TensorFlow 2.12.0 이상, 2.15.0 미만의 버전에서만 지원이 된다고 하는데.. 현재 tensorflow 버전은 2.18.0 입니다.
/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning:
TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
For more information see:
https://github.com/tensorflow/addons/issues/2807 warnings.warn(
/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.13.0 and strictly below 2.16.0 (nightly versions are not supported).
The versions of TensorFlow you are currently using is 2.17.1 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons warnings.warn(
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-7cebd7ff62f1> in <cell line: 3>()
1 import tensorflow as tf
2 import tensorflow_datasets as tfds
----> 3 import tensorflow_addons as tfa
4
5 model = tf.keras.models.Sequential([
.
.
.
.
/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/types.py in <module>
27 # New versions of Keras require importing from `keras.src` when
28 # importing internal symbols.
---> 29 from keras.src.engine import keras_tensor
30 elif Version(tf.__version__).release >= Version("2.5").release:
31 from keras.engine import keras_tensor
ModuleNotFoundError: No module named 'keras.src.engine'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------