- Python installed on your system.
-
Open Command Prompt
- Press
Win + R
, typecmd
, and pressEnter
.
- Press
-
Navigate to your project directory
cd path\to\your\project
-
Create a virtual environment
python -m venv venv
-
Activate the virtual environment
venv\Scripts\activate
You should see
(venv)
at the beginning of the command line. -
Install packages from
requirements.txt
pip install -r requirements.txt
-
Deactivate the virtual environment
deactivate
-
Open Terminal
- Press
Command + Space
, typeTerminal
, and pressEnter
.
- Press
-
Navigate to your project directory
cd path/to/your/project
-
Create a virtual environment
python3 -m venv venv
-
Activate the virtual environment
source venv/bin/activate
You should see
(venv)
at the beginning of the command line. -
Install packages from
requirements.txt
pip install -r requirements.txt
-
Deactivate the virtual environment
deactivate