Create Virtual Environment for Python 3.11

sudo apt install python3.11-venv
python3 -m venv my-project-env
source ~/my-project-env/bin/activate
(my-project-env) $

Once you are done with your work to deactivate the environment, simply type deactivate and you will return to your normal shell.

deactivate