Using Conda:
- Open a command-line interface (such as Anaconda Prompt or Terminal).
- Navigate to the directory where your
requirements.txt
file is located:cd path/to/directory
- Create a new conda environment (optional but recommended for isolation):
conda create --name myenv
- Activate the conda environment:
conda activate myenv
- Install the packages from
requirements.txt
:conda install --file requirements.txt
Using venv (Python's built-in virtual environment module):
- Open a command-line interface (such as Terminal or Command Prompt).
- Navigate to the directory where your
requirements.txt
file is located:cd path/to/directory
- Create a new virtual environment. Feel free to replace
myenv
with the desired name for your environment.python -m venv myenv
- Activate the virtual environment:
- On Windows:
myenv\Scripts\activate
- On macOS and Linux:
source myenv/bin/activate
- On Windows:
- Install the packages from
requirements.txt
:pip install -r requirements.txt
Feel free to replace myenv
with the desired name for your environment.
-
Set the following environmental variables on local machine:
DEV_LOGIN_EMAIL DEV_LOGIN_PASSWORD DD_MERCHANT_LOGIN_URL = "https://identity.doordash.com/auth?client_id={client_id}"
-
Run the script:
python -m src.app.main