langbrain/Python FastAPI.md

23 lines
534 B
Markdown

## Set up virtual environnement
At the root of your repository, first set up a python virtual environnement.
`$ python -m venv .venv`
This will be useful to keep track of the dependencies
[source](https://docs.python.org/3/library/venv.html)
Activate it
`$ source .venv/bin/activate`
now you should see `(.venv) ~/Code/fastapi-corbia-telegram$ `
`pip install --upgrade pip`
`(.venv) ~/Code/fastapi-corbia-telegram$ pip install fastapi[all] uvicorn`
`(.venv) ~/Code/fastapi-corbia-telegram$ pip freeze > requirements.txt`