2. Create and Configure a Python Virtual Environment

Say, you keep all your virtual environments in a virtualenvs directory. Then in a command prompt:

cd C:\
mkdir virtualenvs
cd virtualenvs

Create a virtual environment named django_iis_demo_env inside virtualenvs:

python -m venv django_iis_demo_env

Enter the newly created virutual environment and activate it:

cd django_iis_demo_env
Scripts\activate.bat  # activate the virtual env
python -m pip install --upgrade pip  # Upgrade pip

Last updated