examerioLogin

How do you create and activate a virtual environment for Django?

πŸ“˜ Explanation

The correct commands, python -m venv .venv followed by source .venv/bin/activate, are the standard way to create and activate a virtual environment on macOS/Linux using Python's built-in venv module. The other options use incorrect tools or syntax, such as virtualenv with a Windows-style activation script mismatched to the platform, installing a nonexistent 'venv' package via pip, or a fabricated django-admin command that doesn't exist.

Related questions

← PreviousNo login needed