制作 requirements.in

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fastapi~=0.111.0
starlette~=0.37.2
SQLAlchemy~=2.0.29
pydantic~=1.9.0
uvicorn~=0.29.0
PyMySQL~=1.0.3
mysql-connector-python~=8.3.0
requests~=2.31.0
sonyflake-py~=1.3.0
retrying~=1.3.4
python-dateutil~=2.8.2
redis~=5.0.4
pip-tools~=7.4.1
pytest~=8.2.1
python-jose~=3.3.0

安装 pip-tools

1
pip install pip-tools

生成 requirements.txt

1
pip-compile --strip-extras requirements.in