1. Create a virtual environment:

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)

  1. Activate the virtual environment:

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.

  1. Install Jupyter:

pip install notebook

  1. Run Jupyter:

jupyter notebook

  1. When you're done:

To deactivate the virtual environment:

deactivate