sudo apt install python3-venv (Install the python3-venv package if you don't have it)
python3 -m venv myenv (Create a virtual environment)
source myenv/bin/activate (Activate the virtual environment)
pip install jupyter (Install Jupyter within this environment)
jupyter notebook (Run Jupyter Notebook)
after above procedure:
source myenv/bin/activate
jupyter notebook
When you're done, you can deactivate the virtual environment by typing deactivate.