Import tensorflow as tf causing error

Hello, I just installed tensorflow for python, so I’m very new. Sorry if this is a dumb question, but when I try to test my installation of tensorflow I keep getting a long error. Any ideas of what I can do to fix this?

######################################################
My Code
######################################################

import tensorflow as tf

######################################################
The error message
######################################################

Traceback (most recent call last):
File “/Users/…/Desktop/machineLearningCheck.py”, line 1, in
import tensorflow as tf
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/init.py”, line 37, in
from tensorflow.python.tools import module_util as _module_util
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/init.py”, line 42, in
from tensorflow.python import data
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/init.py”, line 21, in
from tensorflow.python.data import experimental
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/experimental/init.py”, line 95, in
from tensorflow.python.data.experimental import service
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/experimental/service/init.py”, line 387, in
from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/experimental/ops/data_service_ops.py”, line 23, in
from tensorflow.python.data.experimental.ops import compression_ops
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/experimental/ops/compression_ops.py”, line 16, in
from tensorflow.python.data.util import structure
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/data/util/structure.py”, line 22, in
from tensorflow.python.data.util import nest

Can you tell us what steps you went through to install the Tensorflow? Did you follow [Tested build configurations] (Build from source  |  TensorFlow)? Thank you.