全新 Python 环境执行 requirements.txt 后出现多项依赖冲突

Author: SendColaCreated Jun 27, 2026Updated Jun 27, 2026

您好,感谢开源 MiniMind-V。

我按照 README 中的环境准备步骤,在一个全新的 Conda 环境中执行:

bash
git clone --depth 1 https://github.com/jingyaogong/minimind-v
cd minimind-v

pip install -r requirements.txt \
  -i https://pypi.tuna.tsinghua.edu.cn/simple

安装过程最终显示 Successfully installed,但同时出现了多项依赖冲突。随后执行:

bash
python -m pip check

得到以下结果:

argon2-cffi-bindings 25.1.0 requires cffi, which is not installed.
ipython 8.37.0 requires pexpect, which is not installed.
jaxline 0.0.8 requires chex, which is not installed.
nvidia-cudnn-cu12 9.1.0.70 requires nvidia-cublas-cu12, which is not installed.
rfc3987-syntax 1.1.0 requires lark, which is not installed.
tensorflow-graphics 2021.12.3 requires tensorflow, which is not installed.
terminado 0.18.1 requires ptyprocess, which is not installed.
opencv-python 4.12.0.88 requires numpy<2.3.0,>=2, but numpy 1.26.4 is installed.
tensorflow-metadata 1.17.2 requires protobuf<4.22,>=4.21.6, but protobuf 5.29.6 is installed.
fastapi 0.138.1 requires pydantic>=2.9.0, but pydantic 2.8.2 is installed.
gradio 5.49.1 requires pillow<12.0,>=8.0, but pillow 12.2.0 is installed.
huggingface-hub 1.21.0 requires typer<0.26.0,>=0.20.0, but typer 0.26.8 is installed.
streamlit 1.50.0 requires pillow<12,>=7.1.0, but pillow 12.2.0 is installed.
torch 2.12.1 requires setuptools<82, but setuptools 82.0.1 is installed.
transformers 4.57.6 requires huggingface-hub<1.0,>=0.34.0, but huggingface-hub 1.21.0 is installed.

其中看起来和项目核心依赖关系较大的冲突包括:

transformers 4.57.6
↔ huggingface-hub 1.21.0

gradio 5.49.1 / streamlit 1.50.0
↔ pillow 12.2.0

fastapi 0.138.1
↔ pydantic 2.8.2

torch 2.12.1
↔ setuptools 82.0.1

opencv-python 4.12.0.88
↔ numpy 1.26.4

环境信息:

OS: Ubuntu
Python: [请填写,例如 3.10.x]
Conda environment: new environment
Installation source: requirements.txt

想请问:

  1. 当前是否有作者验证过的 Python、PyTorch、CUDA 和依赖版本组合?
  2. requirements.txt 中是否存在部分版本需要进一步固定?
  3. 是否可以提供一份能够通过 python -m pip check 的依赖文件或 Conda 环境文件?

感谢!