Error in TensorFlow in MacBook Air M1 (macOS Monterey)

getting this error again and again even if I tried reinstalling. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/aman/LLM/env/lib/python3.8/site-packages/tensorflow/init.py", line 439, in <module> _ll.load_library(_plugin_dir) File "/Users/aman/LLM/env/lib/python3.8/site-packages/tensorflow/python/framework/load_library.py", line 151, in load_library py_tf.TF_LoadLibrary(lib) tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/Users/aman/LLM/env/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 0x0006): Symbol not found: OBJC_CLASS$_MPSGraphRandomOpDescriptor Referenced from: /Users/aman/LLM/env/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib Expected in: /System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Versions/A/MetalPerformanceShadersGraph

Hello, Python 3.8 is not supported for current versions of Tensorflow: https://www.tensorflow.org/install/pip#software_requirements

If possible, please upgrade to Python 3.9 or later and update here if an issue is still observed. Thanks!

Error in TensorFlow in MacBook Air M1 (macOS Monterey)
 
 
Q