Create Virtual Environment

Windows


//Install python from Microsoft Store
> python
Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb  4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z

// Create venv
> python -m venv ./python_venv
>

// Activate venv
> cd python_venv
> Scripts\activate
(python_venv) path\python_venv>
        

Using Miniconda(windows)


// Create a new environment named virtual_avatar, install Python 3.11.5
cmd> C:\Users\amit\miniconda3\Scripts\conda create --name pvenv python=3.11.5

// Activate venv
c:\Users\amit\miniconda3\envs> c:\Users\amit\miniconda3\Scripts\activate pvenv