-
Python: Python 3.7 or newer is recommended. Check if you have it installed by running
python --versionin your terminal. If not, download the appropriate installer from https://www.python.org/downloads/ -
pip: The package installer for Python. Usually comes bundled with Python. Verify with
pip --version.
Why? Isolates your project's dependencies from other Python projects, avoiding conflicts.
How:
Linux/macOS: python3 -m venv .venv
Windows: python -m venv .venv
Activate:
Linux/macOS: source .venv/bin/activate
Windows: .venv\Scripts\activate
Install Django:
- Inside your activated environment, use pip:
pip install django
