# With Poetry
1. See [[Poetry usage]] to create a `poetry.lock` file: `poetry install`
2. Use `poetry update` to update your dependencies.
3. To create a `requirements.txt` file (instead of the lock file), export the pinned dependencies:
```shell
poetry export -f requirements.txt --output requirements.txt
```
# With Python
1. Set up a [[Standalone venv]]
2. Add dependencies using `pip`
3. Create a `requirements.txt` using either:
- `pipreqs .` when you have packages installed that are not part of the project.
- `pip freeze > requirements.txt` when you have not installed pipreqs **and** can use the current installed package list (pip list) verbatim.
4. Install packages with: `pip install -r requirements.txt`