Python Virtual Environment

Create virtual environment:

python -m venv venv

Activate:

venv\Scripts\Activate.ps1
  • In case of UnauthorizedAccess error run the following powershell command:

      Set-ExecutionPolicy Unrestricted
    

Deactivate:

deactivate

Install packages:

pip install django==5.0

List packages:

pip list