Please run the following steps in the terminal, one by one, based on the list below.
Setup for window
-
Create a virtual environment
python -m venv .venv
-
Activate the virtual environment
.venv\Scripts\activate.bat
-
Install the required libraries/modules (from requirements.txt) into the virtual environment
pip install -r requirements.txt
-
Start the app using the command - in the root folder (not inside app folder)
uvicorn app.main:app --reload
Setup for Macbook
-
Create a virtual environment
python -m venv .venv
-
Check uvicon
which uvicon
-
Make conda deactivate from current one
conda deactivate
-
make conda activavte for project path (Activate the virtual environment)
source .venv/bin/activate
-
Install the required libraries/modules (from requirements.txt) into the virtual environment
python -m pip install -r requirements.txt
-
Start the app using the command - in the root folder (not inside app folder)
python -m uvicorn app.main:app --reload