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==2.2.26

List packages:

pip list