Run the following command to create a virtual environment:
python -m venv venv- Windows (Command Prompt):
venv\Scripts\activate
- Windows (PowerShell):
venv\Scripts\Activate.ps1
- Mac/Linux:
source venv/bin/activate
After activating the virtual environment, install the required packages:
pip install -r requirements.txtTo start the Django development server, run:
python manage.py runserverTo exit the virtual environment when you're done:
deactivate