- Ensure that the current python version is >=3.7 and <=3.11
- Create new python environment:
python -m venv .venv
or Mac OS, use:python3 -m venv .venv
- Activate the environment :
.venv\Scripts\activate
for Mac OS, use:source .venv/bin/activate
- Install all packages in requirement :
pip install -r requirements.txt
- To start the server :
uvicorn app.main:app --reload
- Activate python environment :
.venv\Scripts\activate
- Check for requirement updates :
pip install -r requirements.txt
- Start the server :
uvicorn app.main:app --reload
Write requirement file and update : pip freeze > requirements.txt