Original Note

导出依赖

  • self_study_notes
  • Original Note
  • Updated: 2026-10-12T10:39:27+08:00
Source provenance
Canonical route
/original-notes/self_study_notes/pip/导出依赖
Source path
self_study_notes/pip/导出依赖.md
Content hash
3f25fcdf294253b212663ea6124e2609d180350a82455334aec94208cffcb3a2
Updated commit
c9c2d5eccd9ee09ce82352f0570d53e8b75bbb2e
Updated at
2026-10-12T10:39:27+08:00
Document type
Original Note
Source Collection
self_study_notes
Source Path
self_study_notes/pip/导出依赖.md
Type
Original Note
Updated At
2026-10-12T10:39:27+08:00

如何使用conda的虚拟环境,使用

python -m pip list --format=freeze > requirements.txt

如何单纯是用pip,则可以直接使用

python -m pip freeze --exclude-editable > requirements.txt

Evidence-backed relations

Source Note · Same Topic

切换到中文