Hi @new_programmer and welcome! What is your operating system?
You might encounter an issue of having various Python installations at some point:

  

      xkcd.com
  

  
    Python Environment

  

The Python environmental protection agency wants to seal it in a cement chamber, with pictorial messages to future civilizations warning them about the danger of using sudo to install random Python packages.

  

  
    
    
  

  


To make sure you don’t have that issue in future, you may want to use virtualenv/venv - a virtual environment with an isolated version of Python (e.g. 3.x) with any compatible version of Jupyter (Jupyter Lab) and/or any other library, such as TensorFlow 2.7.
You may find the following posts helpful:


Installing TensorFlow: Your Complete Tutorial | Udacity 2 (Windows, macOS, Linux)
Using Virtual Environments in Jupyter Notebook and Python - Parametric Thoughts 2

Let us know how it goes.

Here are the official docs for virtualenv: Installing packages using pip and virtual environments — Python Packaging User Guide 2
The official TensorFlow installation page:

  
      

      TensorFlow
  

  
    

Install TensorFlow 2

  Learn how to install TensorFlow on your system. Download a pip package, run in a Docker container, or build from source. Enable the GPU on supported cards.