- Create Virtual Environment Create a virtual environment in the project directory:
-
On Windows:
python -m venv venv
-
On Unix/macOS:
python3 -m venv venv
- Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On Unix/macOS:
source venv/bin/activate
- Install Required Packages
With the virtual environment activated, install the project dependencies using the command:
pip install -r requirements.txt
And now you should have a virtual environment, will all the project dependencies working, so hopefully no more "its working on my machine" problems.