343 B
343 B
生成 requirements.txt
pip freeze > requirements.txt
fastapi
pip install fastapi
pip install "uvicorn[standard]"
运行
# uvicorn [文件]:[fastapi 对象] --reload --port [端口号]
# uvicorn main:app --reload --port 5000
python main.py