pip freeze
List installed packages in requirements format. More information: https://pip.pypa.io/en/stable/cli/pip_freeze/.
- List installed packages:
pip freeze
- Write installed packages to the
requirements.txtfile:
pip freeze >requirements.txt
- List installed packages in a virtual environment, excluding globally installed packages:
pip freeze
- List installed packages in the user-site:
pip freeze --user
- List all packages, including
pip,distribute,setuptools, andwheel(they are skipped by default):
pip freeze --all
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
