mirror of
https://github.com/jingyaogong/minimind.git
synced 2026-09-27 13:27:22 +00:00
README 的「第0步」让用户 pip install -r requirements.txt 完成环境搭建,
随后在 OpenAI 兼容服务一节给出可直接运行的命令(README.md:1652):
cd scripts && python serve_openai_api.py
但 scripts/serve_openai_api.py 第12行 import uvicorn、第16-17行
from fastapi import ... 都是顶层硬依赖,而 requirements.txt 里两个都没有。
复现(venv 严格按 requirements.txt 装齐):
$ cd scripts && python serve_openai_api.py --help
ModuleNotFoundError: No module named 'uvicorn'
补上两行。版本已在独立 venv 里验证可与已声明的 pydantic==2.11.5 共存。
36 lines
592 B
Plaintext
36 lines
592 B
Plaintext
datasets==3.6.0
|
|
datasketch==1.6.4
|
|
Flask==3.0.3
|
|
Flask_Cors==4.0.0
|
|
jieba==0.42.1
|
|
jsonlines==4.0.0
|
|
marshmallow==3.22.0
|
|
ngrok==1.4.0
|
|
nltk==3.8
|
|
numpy==1.26.4
|
|
openai==1.59.6
|
|
psutil==5.9.8
|
|
protobuf==6.33.5
|
|
pydantic==2.11.5
|
|
rich==13.7.1
|
|
scikit_learn==1.5.1
|
|
sentence_transformers==2.3.1
|
|
sentencepiece==0.2.0
|
|
simhash==2.1.2
|
|
tiktoken==0.10.0
|
|
transformers==4.57.6
|
|
jinja2==3.1.2
|
|
jsonlines==4.0.0
|
|
trl==0.13.0
|
|
ujson==5.1.0
|
|
wandb==0.22.3
|
|
streamlit==1.50.0
|
|
einops==0.8.1
|
|
swanlab==0.9.8
|
|
modelscope==1.37.0
|
|
fastapi==0.120.1
|
|
uvicorn==0.38.0
|
|
# torch==2.6.0
|
|
# torchvision==0.21.0
|
|
# peft==0.7.1
|
|
# matplotlib==3.10.0 |