Navigate to your project directory :
ls -la
mkdir mypython /create directory
cd mypython /move to directory
python -m venv myenv
(Replace myenv with whatever name you want)
On Windows:
myenv\\\\Scripts\\\\activate
On macOS/Linux:
source myenv/bin/activate
You'll see (myenv) appear at the start of your command line, indicating the environment is active.
pip install notebook
jupyter notebook
To deactivate the virtual environment:
deactivate